You are not logged in.

#1 2010-02-27 21:14:45

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

Install multiple Pacman -U pkgs with single command(solved)

Desire a method to use ,,,pacman -U... to install multiple pkgs from local repo ....with one command.

Last edited by lilsirecho (2010-02-28 00:46:04)


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-02-27 22:36:45

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Install multiple Pacman -U pkgs with single command(solved)

An array and a loop?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-02-28 00:13:00

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

Re: Install multiple Pacman -U pkgs with single command(solved)

Um....  WHAT?   The "trick" is to list multiple packages on the command line....   Did you even try?

> pacman -U autoconf-2.65-1-any.pkg.tar.gz automake-1.11.1-1-any.pkg.tar.gz 
loading package data...
checking dependencies...
(2/2) checking for file conflicts                   [#####################] 100%
(1/2) upgrading autoconf                            [#####################] 100%
(2/2) upgrading automake                            [#####################] 100%

Offline

#4 2010-02-28 00:45:04

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

Re: Install multiple Pacman -U pkgs with single command(solved)

Allan:

Yes tried but not directly as you show it.  Too many keystrokes for me..I make many errors is typing!!!

My solution is simply to put all packages (with depends) into a cache directory. 
Call ...pacman -Ud /mnt/cache/*

Fewer strokes for older folks!!

Thanks for the reponses.

Problem solved.


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

#5 2010-02-28 00:47:28

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: Install multiple Pacman -U pkgs with single command(solved)

Hey lilsirecho, don't forget tab completion. Very handy.

Offline

Board footer

Powered by FluxBB