yu-pkg

Crates.ioyu-pkg
lib.rsyu-pkg
version0.3.0
created_at2025-04-17 03:43:32.005011+00
updated_at2025-07-12 21:44:37.902746+00
descriptionA cross-platform package manager wrapper that detects and uses the system's native package manager
homepage
repositoryhttps://github.com/Young-TW/yu
max_upload_size
id1637201
size91,049
Young (Young-TW)

documentation

README

yu - a package manager wrapper for all unix-like systems

yu allows users to use the same command to install, uninstall, and upgrade packages on all unix-like systems.

Supported package managers

Native

  • apt
  • dnf
  • pacman
  • yum
  • homebrew
  • zypper
  • portage
  • apk

Sandbox / Snapshot

  • flatpak
  • snap
  • nix
  • guix

Domain-Specific

  • conda (Anaconda)
    • pixi (Pixi)
  • spack (Scientific computing)

Language-Specific

  • cargo (Rust)
  • npm (Node.js)
    • pnpm (Node.js)
  • pip (Python)
    • pipx (Python)
    • uv (Python)
  • conan (C/C++)
  • vcpkg (C/C++)

Installation

Using cargo

If you have cargo installed, you can install yu using the following command:

cargo install yu-pkg

Build from source manually

Build

Please make sure you have installed rust and cargo.

git clone https://github.com/Young-TW/yu.git
cd yu
cargo build --release

Install

cargo install --path .

please make sure the ~/.cargo/bin is in your PATH.

Another way to install yu is just copy the yu script to your system.

sudo cp target/release/yu /usr/local/bin/yu

Usage

install package:

yu install <package>

uninstall package:

yu uninstall <package>

reinstall package:

yu reinstall <package>

update package list:

yu update

upgrade all packages:

yu

or

yu upgrade

package name is the same as the package name in the package manager of the system.

auto remove unused packages:

yu autoremove

search package:

yu search <package>

Flags

  • -h, --help: Show help message.
  • -V, --version: Show version.
  • -v, --verbose: Show verbose output.
  • -s, --silent: Show no output(only error output).

Stats

Alt

Commit count: 80

cargo fmt