How to install a list of applications? [Solved]

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

How to install a list of applications? [Solved]

Postby desputin » Sat Dec 01, 2012 0:39

Hi,

I come from the "world of apt-get" and I'm used to install a list of programs right at the start.
I would like to do this under sabayon too.

Is there a way of doing something like this with sabayon?

Code: Select all
apt-get install firefox thunderbird gedit clementine k3b


?

Best regards
desputin
desputin
Young Hen
 
Posts: 32
Joined: Sat Sep 22, 2012 16:15
Location: Germany

Re: How to install a list of applications?

Postby micia » Sat Dec 01, 2012 1:44

Code: Select all
echo apt-get install firefox thunderbird gedit clementine k3b | sed 's:^apt-get:equo:'


You can get more informations about entropy (and equo) in the wiki:
https://wiki.sabayon.org/index.php?title=Entropy

Or in the man page:
Code: Select all
man equo


You can even build a list of the installed packages in one system:
Code: Select all
equo query list installed --quiet > somefile.txt


And install them back into another system:
(as root)
Code: Select all
equo install --ask $(cat somefile.txt)
micia
Sagely Hen
 
Posts: 2718
Joined: Wed Nov 26, 2008 16:41

Re: How to install a list of applications?

Postby Fitzcarraldo » Sat Dec 01, 2012 11:19

Code: Select all
apt-get install firefox thunderbird gedit clementine k3b

Code: Select all
equo install firefox thunderbird gedit clementine k3b
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: How to install a list of applications?

Postby desputin » Mon Dec 03, 2012 9:39

Thank you! Looks great!

@micia:
With
Code: Select all
equo query list installed --quiet > somefile.txt

I get a list that looks like this:
Code: Select all
gnome-base/libgnome-keyring
gnome-base/libgnomecanvas
gnome-base/librsvg
gnome-extra/gnome-audio
java-virtuals/jaf
java-virtuals/javamail
kde-base/akonadiconsole
kde-base/akregator
kde-base/amor

Do I have to remove everything before the / in every line or does this command:
Code: Select all
equo install --ask $(cat somefile.txt)

Install the programs even if there is the "category" in front of every package?
desputin
Young Hen
 
Posts: 32
Joined: Sat Sep 22, 2012 16:15
Location: Germany

Re: How to install a list of applications?

Postby micia » Mon Dec 03, 2012 16:36

It will work, actually that's even a wanted effect, since it will resolve ambiguous package names.
micia
Sagely Hen
 
Posts: 2718
Joined: Wed Nov 26, 2008 16:41

Re: How to install a list of applications? [Solved]

Postby desputin » Mon Dec 10, 2012 10:22

One last question:

If a package name within this list is spelled incorrectly (e.g. frefox or liberoffice) is it ignored or does the whole installation process abort? Or will the respective package be ignored?
desputin
Young Hen
 
Posts: 32
Joined: Sat Sep 22, 2012 16:15
Location: Germany

Re: How to install a list of applications? [Solved]

Postby micia » Mon Dec 10, 2012 11:53

The mispelled package is ignored, you should get a message about it at the beginning of the procedure.
micia
Sagely Hen
 
Posts: 2718
Joined: Wed Nov 26, 2008 16:41


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest

cron