脚本1
apt install aptitude
apt-get -d install xxx #xxx是待下载的安装包
mv /var/cache/apt/archives/* /home/tuners/1
apt install aptitude
apt-get -d install xxx
mv /var/cache/apt/archives/*.deb /home/tuners/1
xxx 为程序包名称
/home/tuners/1为保存程序包的路径
脚本2
sudo apt install apt-rdepends -y
apt download $(apt-rdepends gcc | grep -v "^ ")
mv /var/cache/apt/archives/* /home/tuners/1
sudo apt install apt-rdepends -y
apt download $(apt-rdepends gcc | grep -v "^ ")
mv /var/cache/apt/archives/*.deb /home/tuners/1
gcc是程序名称
/home/tuners/1是下载的包的程序路径
下载到的文件

文章介绍使用脚本管理apt包安装和依赖下载,包括aptinstall,apt-get,apt-rdepends在内的一系列操作。
757

被折叠的 条评论
为什么被折叠?



