1 unstable release
new 0.2.0 | Apr 17, 2025 |
---|
#759 in Command line utilities
39KB
1K
SLoC
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.
Installation
This script will clone the repository, build the yu
package, and install it to your system.
curl -sSL https://raw.githubusercontent.com/Young-TW/yu/main/script/install.sh | bash
Supported package managers
-
apt
-
dnf
-
pacman
-
yum
-
homebrew
-
zypper
-
portage
-
apk
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
Flags
-h
,--help
: Show help message.-V
,--version
: Show version.-v
,--verbose
: Show verbose output.-s
,--silent
: Show no output(only error output).
Dependencies
~3–12MB
~170K SLoC