Offline installation of packages

From ArchWiki
Revision as of 08:23, 3 March 2007 by Ndlarsen (talk | contribs)
Jump to: navigation, search

A short howto on installing packages while offline. It is Based on byte's post from this thread and I will be using KDE as an example.

Download and when you got an internet connection available.

On your PC at home, do the following as root:

cd /var/lib/pacman
cd current
rm -rf *
tar xzf /path/to/current.db.tar.gz
cd ../extra
rm -rf *
tar xzf /path/to/extra.db.tar.gz
pacman -Sp --noconfim kde > pkglist

Bring that list with you and either download the listed packages manually or do

wget -nv -i .../pkglist

in an empty directory. Gring the files back home and do

pacman -Sy kde