You are not logged in.

#1 2010-07-12 05:06:29

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

[solved] Any problems sharing pkg cache between 64/32-bit systems?

With the advent of the -any- package, there'd be some minor space savings if I had my 32-bit chroot cache in /var/cache/pacman/pkg together with my 64-bit system. Anyone has any warnings about possible problems with this approach?

I see it as quite simple, no 32-bit/64-bit packages would overwrite the other architecture packages, neither would 32/64-bit pacman try to install the wrong architecture (due to uname -m being used on the 'auto' architecture). -any- packages would be shared between the both of them, meaning only one download needed between both, and only a single storage space.

My concern is that I wouldn't be able to pacman -Sc anymore? Any possible workarounds for that? The other thing I thought about doing was having a pacman hook (not implemented yet I know, but I'd 'implement' it using a script) was hard-linking -any- packages after every pacman update. More complex and easier to break, but would allow pacman -Sc no problem.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2 2010-07-12 05:12:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

pacman -Sc is the only issue.   I once had a cron daemon putting hardlinks in the other pkgcache every so often, but now I only do it when I rsync some repos to my pkcache...

Offline

#3 2010-07-12 09:25:25

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

Thanks Allan. I recall Xyne having some sort of 'keep last X packages' python app, maybe I'll bug him to add a simple 'ignore packages not of the right architecture' and use that.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2010-07-12 11:34:43

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

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

I've done this for years, before -any packages existed - I just manage my cache outside of pacman.

Offline

#5 2010-07-12 11:45:55

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

tomk wrote:

I've done this for years, before -any packages existed - I just manage my cache outside of pacman.

Manually? Or with personal scripts? If the latter would you mind sharing them?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2010-07-12 13:35:20

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

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

yeah, guess I should have mentioned that.. smile

I do it manually - about twice a year, and each time I say "I really should script that"...

Offline

#7 2010-07-12 21:21:45

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

tomk wrote:

yeah, guess I should have mentioned that.. smile

I do it manually - about twice a year, and each time I say "I really should script that"...

I also do it manually whenever I need HD space. 

Another issue is old packages in the repo that don't have the arch in their package name. Pacman complains about mismatched md5sums so you need to tell it to removed the package and redownload it. It's just an annoyance that will soon disappear as we are currently rebuilding the old community packages.

Offline

#8 2010-07-12 23:08:00

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [solved] Any problems sharing pkg cache between 64/32-bit systems?

tomk wrote:

yeah, guess I should have mentioned that.. smile

I do it manually - about twice a year, and each time I say "I really should script that"...

Can I say 'ouch'.......


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB