You are not logged in.

#1 2011-04-02 23:41:29

Hyugga
Member
From: Santiago, Chile
Registered: 2010-03-26
Posts: 335

Crazy idea i had: Creating your own groups.

For example, i have installed netbeans, eclipse, umbrello and qtcreator. If i run:

pacman --create-group 'programming' netbeans eclipse umbrello qtcreator

The programming group is created with the selected packages.

So if i run:

pacman -S programming

all the packages in the "programming group" are installed or updated. Same thing for removing packages and so on.

What do you think?

Last edited by Hyugga (2011-04-02 23:42:52)

Offline

#2 2011-04-02 23:57:48

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Crazy idea i had: Creating your own groups.

I don't see that usefull since you are typing all the program names when creating the group. Isn't it easier to just call pacman -S ...?

Offline

#3 2011-04-03 00:03:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Crazy idea i had: Creating your own groups.

I have a 'modified' group that includes all the packages I build from ABS that I don't want overwritten: then in pacman.conf it is just a case of adding

IgnoreGroup = modified

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2011-04-03 00:05:50

Hyugga
Member
From: Santiago, Chile
Registered: 2010-03-26
Posts: 335

Re: Crazy idea i had: Creating your own groups.

I don't see that usefull since you are typing all the program names when creating the group. Isn't it easier to just call pacman -S ...?

Yes but only once. And it's easy to remove all the packages at once. Just pacman -Rns programming removes them all.

Last edited by Hyugga (2011-04-03 00:07:51)

Offline

#5 2011-04-03 00:29:55

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Crazy idea i had: Creating your own groups.

You can already do this.

mkdir ~/pacmangroups
printf '%s\n' foopkg barpkg bazpkg | sort > ~/pacmangroups/programming
pacman -S - < ~/pacmangroups/programming

Removing is a little tricker...
pacman -R - < <(comm -12 ~/pacmangroups/programming <(pacman -Qq))

Offline

Board footer

Powered by FluxBB