You are not logged in.

#1 2006-07-04 10:36:18

alski
Member
Registered: 2006-05-17
Posts: 11

adding folder as repo

Hi guys, new to arch.  I temporarily installed another OS, but beforehand backed up all of the many archived .pkg.tgz files to a folder on a safe partition.  Is there a way I can add this folder to pacman.conf with priority so that upon reinstallation, if the local version >= the online version I can install from it instead of the net?
TIA

Offline

#2 2006-07-04 11:16:37

Chman
Member
Registered: 2006-01-31
Posts: 169
Website

Re: adding folder as repo

You have to build a local repository. This might help you :
http://wiki.archlinux.org/index.php/Mak … package_cd

For more documentation on package/repository making :
http://wiki.archlinux.org/index.php/Cat … Management

You should find all you need there wink

Offline

#3 2006-07-04 11:17:38

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: adding folder as repo

You simply have to put :

[a_repo_name]
Server = file:///path/to/your/folder

where a_repo_name is a name for your repo, and /path/to/your/folder is .. the path to your folder.

Put this line before any other repos in pacman.conf, then refresh your databse (pacman -Sy).

Offline

#4 2006-07-04 13:50:50

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: adding folder as repo

Nearly that simple - but not quite. You have to gensync it:

http://wiki.archlinux.org/index.php/Cus … nd_gensync

Offline

#5 2006-07-04 14:00:49

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: adding folder as repo

oops, I forget the gensync step  :oops:

Offline

#6 2006-07-04 17:30:11

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: adding folder as repo

In this case, it is much easier. Just put the saved package in the pacman cache and install everything. If a package is found in the cache, it won't be downloaded.

Offline

#7 2006-07-05 08:51:43

alski
Member
Registered: 2006-05-17
Posts: 11

Re: adding folder as repo

thanks to all of you.  While i did want to learn about making a repo for future reference, I was in a bind for time and found brain0's method much quicker(read: easier)...it worked without a hitch.  Thanks all smile.

Offline

Board footer

Powered by FluxBB