You are not logged in.
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
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
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
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
Offline
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