參考termux中包管理命令的偽裝修改的arch版包管理命令
阿新 • • 發佈:2017-11-10
message ssa date all inf run bash $@ sta
#!/data/data/com.termux/files/usr/bin/sh set -e -u show_help() { echo "This help message is useless, please read the content of /bin/pacman" exit 1 } if [ $# = 0 ]; then show_help; fi CMD="$1" shift 1 case "$CMD" in -h) show_help;; -Sy) apt-get update;; -S) apt-get install $@;; -Syu) apt-get update; apt-get upgrade;; -Q) dpkg -l $@;; -Ql) dpkg -L $@;; -Qo) dpkg -S $@;; -Ss) apt-cache search $@;; -Si) apt-cache showpkg $@;; -Rns) apt-get autoremove --purge $@;; *) echo "Unknown command: ‘$CMD‘ (run ‘packages help‘ for usage information)";; esac
參考termux中包管理命令的偽裝修改的arch版包管理命令