You are not logged in.

#1 2010-06-09 23:37:03

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

Install multiple cman -U command (done)

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

#2 2010-06-10 00:47:45

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

Re: Install multiple cman -U command (done)

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

#3 2010-06-10 03:00:14

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

Re: Install multiple cman -U command (done)

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

#4 2010-06-10 03:06:32

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

Re: Install multiple cman -U command (done)

> 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

#5 2010-06-10 03:18:34

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

Re: Install multiple cman -U command (done)

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

#6 2010-06-10 03:35:33

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Install multiple cman -U command (done)

lilsirecho wrote:

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;done

Last edited by kazuo (2010-06-10 03:36:57)

Offline

#7 2010-06-10 17:10:07

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

Re: Install multiple cman -U command (done)

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

#8 2010-06-10 19:27:56

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

Re: Install multiple cman -U command (done)

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

#9 2010-06-10 21:38:06

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Install multiple cman -U command (done)

kazuo wrote:

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/*

tongue


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2010-06-10 23:00:25

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Install multiple cman -U command (done)

Real real real real real men don't re-invent the wheel, either:

echo $cachedir/* |  xargs -n 1 pacman -U

tongue:P

Last edited by ataraxia (2010-06-10 23:00:39)

Offline

#11 2010-06-11 18:48:38

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

Re: Install multiple cman -U command (done)

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

Board footer

Powered by FluxBB