Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Undo a mistaken emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Mon Jul 10, 2017 12:32 pm    Post subject: [SOLVED] Undo a mistaken emerge Reply with quote

I thought I could get some useful network tools and thoughtlessly entered:

emerge net-utils

and it went off compiling 77 packages. I did a google seeing that app-xemaps/net-utils sounds like the sort of thing I need but realising it was an indiscriminate large installation on my new system I decided to abort it at 19 of 77.

Now I want to kind of "undo" that before proceeding.

It's not able to --unmerge (can't find net-utils)

I know there is documentation out there but could someone please help me undo this so I can get back on track?
_________________
]8P


Last edited by stardotstar on Mon Jul 10, 2017 1:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 744
Location: S.O. France

PostPosted: Mon Jul 10, 2017 12:41 pm    Post subject: Reply with quote

Simply run
Code:
emerge --depclean

Maybe run emerge --depclean -p before
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Mon Jul 10, 2017 12:53 pm    Post subject: Reply with quote

thats it Seb! thanks heaps.
w
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2713

PostPosted: Mon Jul 10, 2017 12:58 pm    Post subject: Re: Undo a mistaken emerge Reply with quote

stardotstar wrote:
I thought I could get some useful network tools ...

Check Network management using DHCPCD.
Sufficient for most.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43979
Location: 56N 3W

PostPosted: Mon Jul 10, 2017 1:26 pm    Post subject: Reply with quote

stardotstar,

Code:
emerge --depclean
examines the entire dependency tree for your system then removes packages that are installed but not needed by other installed packages.
Its not perfect for several reasons.

For 'slotted' packages where you have several versions installed, it will only keep the newest.
With gcc and the kernel, that may not be what you want. Always use the --pretend option first and read over the proposed list of packages to be removed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Mon Jul 10, 2017 1:37 pm    Post subject: Reply with quote

Thank you for these comments; I did confirm as Seb suggested with -p and was pleased to see that the packages appeared to be the ones that came in and given the number was the same I felt confident to do it.
I did see the cautions in the --depclean messages and will try to bear this in mind.
Suffering considerable overload at this point - and I appreciate the help and additional cautions, hints and advices.
Btw I got host with bind-utils but I'll look into that Charles
_________________
]8P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum