You are not logged in.

#1 2005-08-10 15:35:59

civ247
Member
Registered: 2005-08-05
Posts: 53

pacman -S with local repository

Hi i have no interent connection on the home pc so i created /var/pkgs on the hd an added it to the pacman.conf file. Naturally i commented out the ftp repositorys.

Q: How can i get Sync to work? I want ot be able to do
pacman -S pkgname?

It keeps telling me i can not sync database & asking if i have used --refresh yet but iv tried everything.

How do i do it?

Offline

#2 2005-08-10 15:40:30

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman -S with local repository

you need to run gensync on it, or name it the exact same as the repo packages... that is, there should be a "current.db.tar.gz" file for the current stuff, and an "extra.db.tar.gz" file for extra.  Make sure those exist.  If they do not, you need to run gensync to build them (they should exist if you just rsync'd the repos.

Offline

#3 2005-08-10 19:54:26

scarecrow
Member
From: Greece
Registered: 2004-11-18
Posts: 715

Re: pacman -S with local repository

BTW if you simply copy the packages in /var/cache/pacman/pkg you can use pacman -S without having to create any local repo.


Microshaft delenda est

Offline

#4 2005-08-11 15:04:05

civ247
Member
Registered: 2005-08-05
Posts: 53

Re: pacman -S with local repository

Thanks, worked a treat. Is it possible to create the dbname.db.tar.gz database without an interenet connection? i.e. just from various packages i downloaded?

Offline

#5 2005-08-11 15:23:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman -S with local repository

it's an app called "gensync"

Offline

#6 2005-08-11 17:23:35

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: pacman -S with local repository

You have to put your pkgs in one place (e.g. /home/pkgs/civ247) and your PKGBUILDS for these pkgs in another (e.g. /var/abs/civ247), then run something like

gensync /var/abs/civ247 /home/pkgs/civ247/civ247.db.tar.gz /home/pkgs/civ247 && tar -tzf /home/pkgs/civ247/civ247.db.tar.gz || less

Gensync looks recursively down directories in /var/abs/civ247, which makes sense I guess since you need to have directory structures like /var/abs/civ247/foo/PKGBUILD and /var/abs/civ247/bar/PKGBUILD for foo and bar pkgs.

Appparently it won't work right if you're in the directory that gensync looks at for PKGBUILDS, so make sure you're somewhere else when running the command.  The second part (tar) of that just makes sure that the db was created properly by showing you what's in it.

Offline

Board footer

Powered by FluxBB