You are not logged in.
Desire to install from local cache directory a number of cached packages with a single ...pacman -U command.
A simple list of the packages in sequence only loads and installs the first listed item and rejects all others.
Last edited by lilsirecho (2010-06-10 19:30:38)
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
Try the absolute paths. I can't exactly recall whether I've done it before, but I think I have.
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
My hope is that with a single ....pacman -U (cachedir)/package 1 package 2 package 3 ....etc......with each package including its full ID will permit the install of 120 or so packages fromthe cachedir.
I fully expect that if I repeat the ....pacman -U (cachedir) 120 times it will install all but this is too much typing for this ole man!!!
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
> pacman -U /home/arch/pkgcache/i686/leafpad-0.8.17-1-i686.pkg.tar.gz /home/arch/pkgcache/i686/apricots-0.2.6-3-i686.pkg.tar.gz
loading package data...
checking dependencies...
(2/2) checking for file conflicts [#####################] 100%
(1/2) installing leafpad [#####################] 100%
(2/2) installing apricots [#####################] 100%So what is wrong here? Everything seems to work.
Offline
Why not just cd (cachedir) and then pacman -U all the packages?
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
My hope is that with a single ....pacman -U (cachedir)/package 1 package 2 package 3 ....etc......with each package including its full ID will permit the install of 120 or so packages fromthe cachedir.
I fully expect that if I repeat the ....pacman -U (cachedir) 120 times it will install all but this is too much typing for this ole man!!!
pacman -U works as Allan said, so you dont need...
But real real man dont repeat things they program/script it, so if pacman -U dont worked you dont repeat it 120 times, but let the computer do it for you
for file in $cachedir/*; do pacman -U $file;doneLast edited by kazuo (2010-06-10 03:36:57)
Offline
Appreciate the responses and am hopeful one of the methods reduces my install time by 35 seconds.
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
No way to reduce the install time since each package has to be loaded, untarred and then all are installed.
Best to install only packages needed singly or in smaller groups.
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
But real real man dont repeat things they program/script it, so if pacman -U dont worked you dont repeat it 120 times, but let the computer do it for you
for file in $cachedir/*; do pacman -U $file;done
Real real real men repeat even less:
function separately() {
CMD=$1
shift 1
for ARG in "$@"
do
$CMD $ARG
done
}separately 'pacman -U' $cachedir/*![]()
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Real real real real real men don't re-invent the wheel, either:
echo $cachedir/* | xargs -n 1 pacman -U
:P
Last edited by ataraxia (2010-06-10 23:00:39)
Offline
Ataraxia;
Nice sequential method which shows the individual package handling by pacman with n=1.
It takes 1 min 45 secs to install 142 files (229MB tar.xz) into live ram.
I think it installs all packages which have no dependency problems but does not install those with problems.
In my Live cp2ram system it increases the ram use to almost 3.2GB since the installed size is uncompressed packages.
Plan on a new-fangled mobo with 6 or 8 GB of ram!!! Want a 1600mhz cpu system with 1600 mhz ram.
I guess I want it because its there!!!!
Thanks for your reply among the others as well.
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