You are not logged in.

#1 2013-10-21 17:24:40

MickeyKnox
Member
Registered: 2010-02-27
Posts: 169

iproute2 removed when cleaning up

To clean up my system, i ran

pacman -Rcsn $(pacman -Qqdt)

which removed (among others) iproute, leaving my system without network after reboot.
That was not intended, of course. Is it generally unsafe to run above command? Or is there a problem?
Since that command removed quite a bunch, i'm worried, it removed even more needed packages...

Offline

#2 2013-10-21 17:41:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: iproute2 removed when cleaning up

As a general rule, pacman -Rc is never safe, you always want to pay very close attention when using it. -Rsn is fine.

Did you not look at the list to be removed before doing it? Have you been using pacman's --asdep switch and somehow told pacman that iproute2 is installed as a dep? As part of base, it should have been explicitly installed and the command you ran shouldn't have touched it.

Last edited by Scimmia (2013-10-21 17:55:28)

Offline

#3 2013-10-21 18:00:10

MickeyKnox
Member
Registered: 2010-02-27
Posts: 169

Re: iproute2 removed when cleaning up

Scimmia wrote:

pacman -Rc is never safe, you always want to pay very close attention when using it. -Rsn would have been fine.

Did you not look at the list to be removed before doing it?

I hace to admit, i did not.

Scimmia wrote:

Have you been using pacman's --asdep switch and somehow told pacman that iproute2 is installed as a dep?

I'm pretty sure, i didn't do anything like that.

Scimmia wrote:

As part of base, it should have been explicitly installed and the command you ran shouldn't have touched it.

That's what i thought.

Offline

#4 2013-10-21 18:00:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: iproute2 removed when cleaning up

Check the log to see which package were removed an reinstall them if needed.

Offline

#5 2013-10-22 12:36:58

MickeyKnox
Member
Registered: 2010-02-27
Posts: 169

Re: iproute2 removed when cleaning up

I had an extensive look at the list of removed packages. For many of them however,
i don't know what they're good for, even after reading the description. The only package
i found worth reinstalling was libtool. (I assume, this one also shouldn't have been removed
in the first place).

Just for the fun of it, i ran

pacman --needed -S base

which wanted to install openresolv, cronie and netctl. But these are not part of the removed packages.
What about that?

I also ran above command for base-devel, which resulted in a conflict between binutils and binutils-multilib.

Offline

#6 2013-10-22 12:40:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: iproute2 removed when cleaning up

openresolv is a dependency for netctl. netctl and cronie are members of the 'base' group.
You don't have to have the whole 'base' installed although a cron implementation is useful.

Offline

#7 2013-10-22 14:24:29

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: iproute2 removed when cleaning up

karol wrote:

openresolv is a dependency for netctl. netctl and cronie are members of the 'base' group.
You don't have to have the whole 'base' installed although a cron implementation is useful.

If you are going to start removing packages that are in the base group, you should know exactly what you are doing.  There are indeed some packages that are not required for your system to function (one example is that I always remove vi and nano since I am a vim user), but if you don't knw precisely what each package is and what purpose it serves, I wouldn't play with it.

Just be careful and don't take the presence of base packages lightly.

Offline

Board footer

Powered by FluxBB