ubuntu/linux制作离线libreoffice包

sudo apt-cache search libreoffice
sudo apt-get libreoffice
sudo add-apt-repository ppa:libreoffice/libreoffice-prereleases
sudo apt-get update
sudo apt-get install libreoffice libreoffice-style-breeze
mkdir /libreoffice
sudo rm -rf /var/cache/apt/archives/*
cp -r /var/cache/apt/archives /libreoffice
chmod 777 -R /libreoffice/
sudo apt-get install dpkg-dev
sudo dpkg-scanpackages /libreoffice/ /dev/null |gzip >/libreoffice/Packages.gz -r
cp /libreoffice/Packages.gz /libreoffice/archives/Packages.gz
tar cvzf libreoffice.tar.gz /libreoffice/

无网的机器上
sudo tar -xvf libreoffice.tar.gz
cp /etc/apt/sources.list /etc/apt/sources2.list.bak
echo > /etc/apt/sources.list
vi /etc/apt/sources.list
deb file:///libreoffice archives/
cp -r /libreoffice/ /libreoffice/libreoffice
sudo apt-get update

sudo apt-get install software-properties-common python-software-properties

你可能感兴趣的:(ubuntu/linux制作离线libreoffice包)