unbuntu/linux制作离线FFmpeg包

sudo add-apt-repository ppa:djcj/hybrid
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:djcj/hybrid
apt-cache  search ffmpeg
apt-get -d install ffmpeg
sudo apt-get update
   cd /
mkdir AAA
cp -r /var/cache/apt/archives  /AAA
chmod 777 -R /AAA/
sudo  apt-get install dpkg-dev
sudo dpkg-scanpackages /AAA/ /dev/null |gzip >/AAA/Packages.gz -r
cp /AAA/Packages.gz /AAA/archives/Packages.gz
tar cvzf AAA.tar.gz /AAA/


无网的机器上
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo > /etc/apt/sources.list
vi /etc/apt/sources.list
 deb file:///AAA archives/
 cp -r /AAA/ /AAA/AAA
 sudo apt-get update
 sudo apt-get install ffmpeg

你可能感兴趣的:(linux离线包)