Difference between revisions of "Offline installation of packages"

From ArchWiki
Jump to: navigation, search
m
m
Line 5: Line 5:
  
  
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. This  and the following steps will make sure you're working with up-to-date package lists, as if you ran <tt>pacman -Sy</tt>.
+
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. This  and the following steps will make sure you're working with up-to-date package lists, as if you ran <code>pacman -Sy</code>.
  
 
On your PC at home, do the following as root:
 
On your PC at home, do the following as root:
Line 21: Line 21:
 
Next, bring that list with you to a place where you have internet and either download the listed packages manually or do
 
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
 
  wget -nv -i ../pkglist
in an empty directory. Take all the *.pkg.tar.gz files back home, put them in /var/cache/pacman/pkg and finally do
+
in an empty directory. Take all the *.pkg.tar.gz files back home, put them in /var/cache/pacman/pkg and finally run
 
  pacman -S kde
 
  pacman -S kde

Revision as of 21:43, 24 September 2007


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. This and the following steps will make sure you're working with up-to-date package lists, as if you ran pacman -Sy.

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 all the *.pkg.tar.gz files back home, put them in /var/cache/pacman/pkg and finally run

pacman -S kde