You are not logged in.

#1 2009-11-21 20:37:37

infernalarch
Member
Registered: 2009-11-20
Posts: 25

installed packages backup? [SOLVED]

HI, so I've installed arch on my computer and a friend of mine saw how fast my system is now using arch and he wants me to install it on his system so i wanted to know if there is a way to actually "copy" my packages to his computer so he wouldn't have to download them, and i say this 'cause he uses pretty much the same programs i use.
please if somebody can help me, I'd really appreciate it.

Last edited by infernalarch (2009-11-22 00:03:51)

Offline

#2 2009-11-21 20:59:41

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: installed packages backup? [SOLVED]

Why dont you give him the pkglist and just download it.
Else look into /var/cache/pacman/  there should be your packages wink then just pacman -U the package

Offline

#3 2009-11-21 21:44:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: installed packages backup? [SOLVED]

Some do it like this:

First, backup the current list of packages (which are available in a repository):
pacman -Qqe | grep -v "$(pacman -Qmq)" > pkglist

Copy the pkglist file to the new installation, and navigate to the directory containing it.
pacman -S $(cat pkglist)

Offline

#4 2009-11-21 21:51:01

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: installed packages backup? [SOLVED]

Like jelly said, you want to look copy what's in /var/cache/pacman/pkg/ over onto the new system. Once those are in the cache you can just install like normal with pacman -S, since it will look there first.

Offline

#5 2009-11-22 00:03:23

infernalarch
Member
Registered: 2009-11-20
Posts: 25

Re: installed packages backup? [SOLVED]

mcmillan wrote:

Like jelly said, you want to look copy what's in /var/cache/pacman/pkg/ over onto the new system. Once those are in the cache you can just install like normal with pacman -S, since it will look there first.

Thank you, now i know what to do.
ARCHLINUX ROCKS!!!! big_smile

Offline

Board footer

Powered by FluxBB