Difference between revisions of "Offline installation of packages"

From ArchWiki
Jump to: navigation, search
m
Line 2: Line 2:
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
  
A short howto on installing packages while offline. It is Based on byte's post from [http://bbs.archlinux.org/viewtopic.php?id=30431 this] thread and I will be using KDE as an example.
+
:''A short howto on installing packages while offline. It is based on [[User:Byte|byte's]] post from [http://bbs.archlinux.org/viewtopic.php?id=30431 this] thread and uses KDE as an example.''
  
Download ftp://ftp.archlinux.org/current/os/i686/current.db.tar.gz and ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz when you got an internet connection available.
+
 
 +
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:
 
On your PC at home, do the following as root:
 
  cd /var/lib/pacman
 
  cd /var/lib/pacman
  cd current
+
  cd core
 
  rm -rf *
 
  rm -rf *
  tar xzf /path/to/current.db.tar.gz
+
  tar -xzf /path/to/downloaded/core.db.tar.gz
 
  cd ../extra
 
  cd ../extra
 
  rm -rf *
 
  rm -rf *
  tar xzf /path/to/extra.db.tar.gz
+
  tar -xzf /path/to/downloaded/extra.db.tar.gz
  cd
+
  cd ~
 
  pacman -Sp --noconfim kde > pkglist
 
  pacman -Sp --noconfim kde > pkglist
  
Bring that list with you and either download the listed packages manually or do
+
Now open that textfile with an editor and delete all lines that are not URLs.
  wget -nv -i .../pkglist
+
Next, bring that list with you to a place where you have internet and either download the listed packages manually or do
in an empty directory. Bring the files back home and do
+
  wget -nv -i ../pkglist
  pacman -Sy kde
+
in an empty directory. Take the files back home, put them in /var/cache/pacman/pkg and finally do
 +
  pacman -S kde

Revision as of 21:28, 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.

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