https://wiki.archlinux.org/api.php?action=feedcontributions&user=Simplyjat&feedformat=atomArchWiki - User contributions [en]2024-03-29T06:02:43ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Offline_installation_of_packages&diff=38525Offline installation of packages2008-03-13T10:55:11Z<p>Simplyjat: </p>
<hr />
<div>[[Category:Package management (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
:''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.''<br />
<br />
<br />
Download the following when you got an internet connection available, and transfer the files to home PC<br />
* ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz<br />
* ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz <br />
* ftp://ftp.archlinux.org/community/os/i686/community.db.tar.gz <br />
<br />
<br />
Following steps will make sure you're working with up-to-date package lists, as if you ran <code>pacman -Sy</code>.<br />
<br />
On home PC , do the following as root:<br />
<pre><br />
cd /var/lib/pacman/<br />
mkdir -p sync/core<br />
cd $_<br />
tar -xzf {path-to-download}/core.db.tar.gz<br />
<br />
cd ../..<br />
mkdir -p sync/extra<br />
cd $_<br />
tar -xzf {path-to-download}/extra.db.tar.gz<br />
<br />
cd ../..<br />
mkdir -p sync/community<br />
cd $_<br />
tar -xzf {path-to-download}/community.db.tar.gz<br />
</pre><br />
pacman -Sp --noconfim {package-name} > pkglist<br />
<br />
Now open that textfile with an editor and delete all lines that are not URLs.<br />
Next, bring that list with you to a place where you have internet and either download the listed packages manually or do<br />
<br />
wget -nv -i ../pkglist<br />
<br />
in an empty directory. Take all the *.pkg.tar.gz files back home, put them in /var/cache/pacman/pkg and finally run<br />
<br />
pacman -S {package-name}</div>Simplyjathttps://wiki.archlinux.org/index.php?title=Offline_installation_of_packages&diff=38524Offline installation of packages2008-03-13T10:54:41Z<p>Simplyjat: </p>
<hr />
<div>[[Category:Package management (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
:''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.''<br />
<br />
<br />
Download the following when you got an internet connection available, and transfer the files to home PC<br />
* ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz<br />
* ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz <br />
* ftp://ftp.archlinux.org/community/os/i686/community.db.tar.gz <br />
<br />
<br />
Following steps will make sure you're working with up-to-date package lists, as if you ran <code>pacman -Sy</code>.<br />
<br />
On home PC , do the following as root:<br />
<pre><br />
cd /var/lib/pacman/<br />
mkdir -p sync/core<br />
tar -xzf {path-to-download}/core.db.tar.gz<br />
<br />
cd ../..<br />
mkdir -p sync/extra<br />
tar -xzf {path-to-download}/extra.db.tar.gz<br />
<br />
cd ../..<br />
mkdir -p sync/community<br />
tar -xzf {path-to-download}/community.db.tar.gz<br />
</pre><br />
pacman -Sp --noconfim {package-name} > pkglist<br />
<br />
Now open that textfile with an editor and delete all lines that are not URLs.<br />
Next, bring that list with you to a place where you have internet and either download the listed packages manually or do<br />
<br />
wget -nv -i ../pkglist<br />
<br />
in an empty directory. Take all the *.pkg.tar.gz files back home, put them in /var/cache/pacman/pkg and finally run<br />
<br />
pacman -S {package-name}</div>Simplyjat