Offline installation of packages
- A short howto on installing packages while offline. It is based on byte's post from this thread and uses KDE as an example.
Download ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz and ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz when you got an internet connection available.
On your PC at home, do the following as root:
cd /var/lib/pacman cd core rm -rf * tar -xzf /path/to/downloaded/core.db.tar.gz cd ../extra rm -rf * tar -xzf /path/to/downloaded/extra.db.tar.gz cd ~ pacman -Sp --noconfim kde > pkglist
Now open that textfile with an editor and delete all lines that are not URLs. Next, bring that list with you to a place where you have internet and either download the listed packages manually or do
wget -nv -i ../pkglist
in an empty directory. Take the files back home, put them in /var/cache/pacman/pkg and finally do
pacman -S kde