You are not logged in.

#1 2010-04-24 04:19:43

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Pacman -Syu or/pacman --cachedir -Syuw

Normal pacman activity is performed with pacman -Syu, synched to pacman db and upgrades occur based on the synch with the db.

If, as in my case, I utilize a cachedir to permit installs from the cache instead of downloading and then installing.  Thus the packages are loaded into cachedir with the  ...w ...option. 

The packages are installed with pacman -Ud from the mounted cachedir in an array folder.

My query involves how to utilize pacman to upgrade the cachedir packages.  Normal downloads are measured against the pacman db for the whole system.

Can an alternate db be established which does not interfere with the normal ..pacman -Syy.. which will only respond to a cachedir request?

Perhaps ....pacman --cachedir /mnt/md/cache2/array -Syy?

Will this upset the pacman system?

Or is it just a pipe dream?!~!!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#2 2010-04-24 06:29:21

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

Re: Pacman -Syu or/pacman --cachedir -Syuw

pacman -Sh wrote:

-b, --dbpath <path>  set an alternate database location

Is that what you're looking for?

Offline

#3 2010-04-24 15:09:26

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Pacman -Syu or/pacman --cachedir -Syuw

Perhaps it is.  I would be hesitant to apply it unless I knew that the original db was still intact and useable.

Will give it a try in a Live boot.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#4 2010-04-25 03:58:03

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Pacman -Syu or/pacman --cachedir -Syuw

Generated an alternate pacman db using the ... -b  ...option.

I find it to contain the db packages for the system.

However, the purpose for the alternate was to compare the db with the "local" repo stored in a raid0 array.
  Thus in the directory ...pacman db.... I should find an alternate "local" directory and a "sync" directory.  The "sync" directory exists but no alternate "local" directory.

Maybe a symlink to my repo is required to enable maintaining it separately from the normal pacman activity.

How the "local" is setup in normal pacman activity is an item I am not aware of.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB