You are not logged in.

#1 2011-04-27 22:11:25

Zopper
Member
Registered: 2010-02-02
Posts: 15

how to install/uninstall multiple packages from a list

Is there any way to install/uninstall multiple packages written in file? E.g. I have text file with content:

packageA
packageB
packageC

And I want use something like "pacman -S <<< file-with-packages". I know, I can get these files on one line and paste it as parameters, but this is not pretty way.

I tried searching (also in man), but I didn't found anything (if I missed this in man/wiki, I am sorry, now is "early tomorow" and my mind needs redbull or sleep big_smile )

Offline

#2 2011-04-27 22:15:24

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: how to install/uninstall multiple packages from a list


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2011-04-27 22:18:32

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: how to install/uninstall multiple packages from a list

Try

pacman -S $(cat filename)

Offline

#4 2011-04-27 22:25:42

Zopper
Member
Registered: 2010-02-02
Posts: 15

Re: how to install/uninstall multiple packages from a list

Thank you both, this it exactly i was looking for.

Offline

Board footer

Powered by FluxBB