首页 > 其他 > 详细

参考termux中包管理命令的伪装修改的arch版包管理命令

时间:2017-11-10 01:12:10      阅读:536      评论:0      收藏:0      [点我收藏+]
#!/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版包管理命令

原文:http://www.cnblogs.com/vanwoos/p/7812143.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!