https://github.com/0x00009b/pkget
按照说明安装后 pget <package_name>
即可
值得注意的是
echo export PATH=$PATH:$HOME:.apt/usr/bin:.apt/bin:.apt/sbin:.apt/usr/share:.apt/usr/lib >> $HOME/.profile #don't just be shure
echo export PATH=$PATH:$HOME:.apt/usr/bin:.apt/bin:.apt/sbin:.apt/usr/share:.apt/usr/lib >> $HOME/.bashrc #be extra shure
这里会在 $HOME/.profile
和 $HOME/.bashrc
中写入
PATH=<PATH>:<HOME>:.apt/usr/bin:.apt/bin:.apt/sbin:.apt/usr/share:.apt/usr/lib
<PATH>
和 <HOME>
分别为使用命令 pget
时环境变量 $PATH
和 $HOME
的值。会覆盖该行之前对$PATH
的全部设置
把上述代码修改为
echo export PATH=\$PATH:\$HOME:.apt/usr/bin:.apt/bin:.apt/sbin:.apt/usr/share:.apt/usr/lib >> $HOME/.profile #don't just be shure
echo export PATH=\$PATH:\$HOME:.apt/usr/bin:.apt/bin:.apt/sbin:.apt/usr/share:.apt/usr/lib >> $HOME/.bashrc #be extra shure
则写入的是 PATH=$PATH:$HOME:.apt/usr/bin:.apt/bin:.apt/sbin:.apt/usr/share:.apt/usr/lib
不会对 $PATH
进行覆盖,而是增加所需的目录
这个 fork 中已经修改了上述问题,也提了 pull request 但还没有通过(20220105)
网友评论