You are not logged in.

#1 2012-09-12 23:23:48

archnet
Member
Registered: 2011-05-09
Posts: 42

Install all packages from a given repository?

Is there a way to install every package from a given repository? For example, say I wanted to install every package from core (or at least every non-conflicting package, since systemd-sysvcompat is an issue)? I thought maybe something like '# pacman -S core' might do it, but it didn't.

Back when AIF was still around, I could do this by checking everything at install time, but now it's a multi-step process to collect all the packages and then install them.

Offline

#2 2012-09-12 23:38:23

2ManyDogs
Member
Registered: 2012-01-15
Posts: 1,747

Re: Install all packages from a given repository?

Honest question -- explain to me why you'd want to do this?

Offline

#3 2012-09-12 23:52:42

archnet
Member
Registered: 2011-05-09
Posts: 42

Re: Install all packages from a given repository?

For me, I found I was using most of what was in [core] and it was easier for me to just install everything in it than to weed out the handful that I didn't need. Yes, I know there are _that_ many packages in [core], I'm just _that_ lazy.

In another scenario, I could see someone wanting to have an uber-system with absolutely everything possible and available installed. I used to do this a few years back with distros like Fedora where I would do a complete install.

Offline

#4 2012-09-12 23:55:16

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,738
Website

Re: Install all packages from a given repository?

I'm also not sure what purpose this would serve, but here you go:

pacman -S `pacman -Slq core`

There may be a yet simpler way to do it, but that'd do it.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#5 2012-09-13 00:02:30

2ManyDogs
Member
Registered: 2012-01-15
Posts: 1,747

Re: Install all packages from a given repository?

Thank you for the explanation archnet, and now that I've read a few of your previous topics, I definitely understand.

Offline

#6 2012-09-13 00:21:14

archnet
Member
Registered: 2011-05-09
Posts: 42

Re: Install all packages from a given repository?

Trilby wrote:

I'm also not sure what purpose this would serve, but here you go:

pacman -S `pacman -Slq core`

There may be a yet simpler way to do it, but that'd do it.

Thanks.

I was using the 'l' flag to get the list into a text file and then manually editing the fields. I missed the 'q' flag to do that for me.

Offline

Board footer

Powered by FluxBB