Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FAQF] SA5: Things to not unmerge or remove.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
unixownz
n00b
n00b


Joined: 22 Oct 2002
Posts: 31

PostPosted: Wed Nov 13, 2002 3:22 am    Post subject: [FAQF] SA5: Things to not unmerge or remove. Reply with quote

Hey.. Ya.. I am an uber n00b..
I never looked to see what the package glibc did...
OH my..

I was trying to play a game that said it needed glibc2.1.
So, I assumed that glibc was never installed, so I just emerged the most recent version.. glibc2.2... The game gave the same error, and looking at the ebuilds, I noticed that glibc2.1 was no longer apart of the ebuilds.. So I just said, why waste space? and unmerged my glibc2.2 file...

>>>OMG !! >>
THINGS NOT TO UNMERGE

My system can not do ANY COMMAND.. BASH TCSH.. all shells can not be found... ... so I can not emerge back in...

I still have the installcd... so I can boot off of that... but.... what do i do ???

HELP ! ( I dont want to reinstall everything.. it too forever to get everything up)


EDIT:
Made thread into FAQ Feedback for [url=][/url].
Changed title from "THINGS NOT TO UNMERGE !! DOH !! HELP !! DOH SOME MORE !".
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Nov 13, 2002 3:59 am    Post subject: Reply with quote

In the future, either turn on the buildpkg feature in /etc/make.conf, or make sure you emerge critical packages with the -b flag. That having been said, Lost GCC, or How to emerge GCC without GCC discusses a similar issue, and some of the techniques should be adaptable to repairing glibc as well. Good luck.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
unixownz
n00b
n00b


Joined: 22 Oct 2002
Posts: 31

PostPosted: Wed Nov 13, 2002 5:13 am    Post subject: uhm... Reply with quote

Thx

I read the GCC file, and went searching through all my directrions to cat the CONTENTS of the glibc directory.. but I cant find it.. I looked everywhere... Where is it located? I can only find glib and glibc in the tmp directory..

What should I do ?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Nov 13, 2002 5:17 am    Post subject: Reply with quote

You can either boot from a rescue CD and look for it there, or extract it out of a stage tarball.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
unixownz
n00b
n00b


Joined: 22 Oct 2002
Posts: 31

PostPosted: Wed Nov 13, 2002 6:01 am    Post subject: Reply with quote

rac wrote:
You can either boot from a rescue CD and look for it there, or extract it out of a stage tarball.


... I have no idea where do i get the rescue cd ?
I am using the install cd I dled from the mirrors...

I hope I did this right.. I untar'd the stage1 tar ball right over everything...
Scary.. Ok.. and I located the glibc file...
Bash says it doesnt have perl installed

How do I install it without chroot ?

Sorry I am such a n00b..

Thx
Back to top
View user's profile Send private message
unixownz
n00b
n00b


Joined: 22 Oct 2002
Posts: 31

PostPosted: Wed Nov 13, 2002 6:30 pm    Post subject: =( Reply with quote

:(

I know perl is usually installed by default... but not on the
boot cd... anyway around formating ?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Nov 13, 2002 8:56 pm    Post subject: Reply with quote

Hmm...no perl on the install CD, and the one on your hard disk won't work because glibc is gone, eh? Unfortunately, the only think I can think of now is to unpack a stage 1 tarball across your root partition. When you have some time, you will probably want to reemerge glibc and "emerge -e system".
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
unixownz
n00b
n00b


Joined: 22 Oct 2002
Posts: 31

PostPosted: Thu Nov 14, 2002 2:46 am    Post subject: hey rac Reply with quote

Hey rac

thanks soo much for all the help. at least I dont have to format. Since the server was going to be down anyway I will emerge -e system over night or two.. hhehe...

Next time I will be more careful and definately will use emerge -b and that package builder you were talking about.

Is there anything else I can do that 's a big no no and will screw me ?
Because I want to know now, so I can avoid them in the future..

with all these blunders, I have been able to help out others that pm me.. hehe I learn the hard way for everything..

Once more tho, thank you.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Nov 14, 2002 3:26 am    Post subject: Re: hey rac Reply with quote

unixownz wrote:
Is there anything else I can do that 's a big no no and will screw me ?

Don't delete /var/db/pkg. Someone did that recently. Other things that should definitely not be unmerged, along with glibc:
  • python
  • gcc
  • binutils
  • baselayout
  • bash

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
unixownz
n00b
n00b


Joined: 22 Oct 2002
Posts: 31

PostPosted: Thu Nov 14, 2002 8:05 am    Post subject: Reply with quote

Thx..

Oh here is the update..
My comp = hosed... Nothing worked anymore after I remergged the glic files.. and the emerge -e system..

Its ok...
I am formatting right now..
.. I am learning linux tho...
the hard way...

Thanks for all your help rac :wink:
Back to top
View user's profile Send private message
Edgaer
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 145
Location: The Isle of the Sundered

PostPosted: Fri Mar 28, 2003 10:06 pm    Post subject: Reply with quote

Well while we're talking about things one shouldn't unmerge, don't unmerge grep. Basically what happens is that, the configure scripts that all packages (including grep) use to configure the compile make use of grep. I'm not sure if you can compile it manually as suggested in this thread will work but basically the only way I had to fix things was to download the redhat grep executables from my school's lab server and put those in my path to remerge grep.

And those interested in a link, for my experiences with unmerging grep (and those that haven't figured out that I've linked to it already :wink:) here it is,
http://forums.gentoo.org/viewtopic.php?t=10343&highlight=grep
_________________
--First General Edgaer
Hope is the last to die. Unlike the icq flower.
Back to top
View user's profile Send private message
dberkholz
Developer
Developer


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Tue Jun 03, 2003 10:01 pm    Post subject: Reply with quote

If you completely screw up and remove /var/db/pkg, Cyfred is working on a script to restore it. Check out Restoring /var/db/pkg? for more info.
Back to top
View user's profile Send private message
Once
n00b
n00b


Joined: 25 Sep 2003
Posts: 6

PostPosted: Sun May 02, 2004 6:32 pm    Post subject: more stuff Reply with quote

This is what I missed while reviewing the list of packages that depclean was going to take out.


    fileutils
    textutils
    sh-utils


BAD BAD BAD.

I am currently copying over binaries such as cp, ls, rm, from my system backup so that I can get emerge up an running again.
Back to top
View user's profile Send private message
dberkholz
Developer
Developer


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sun May 02, 2004 7:38 pm    Post subject: Re: more stuff Reply with quote

Once wrote:
This is what I missed while reviewing the list of packages that depclean was going to take out.


    fileutils
    textutils
    sh-utils


BAD BAD BAD.

I am currently copying over binaries such as cp, ls, rm, from my system backup so that I can get emerge up an running again.

Those are old, and everything they provide is now provided by coreutils.
Back to top
View user's profile Send private message
ronvenema
Apprentice
Apprentice


Joined: 16 Jan 2005
Posts: 160
Location: Dewey, Az

PostPosted: Thu Mar 10, 2005 2:17 pm    Post subject: Reply with quote

Removing ncurses is also very bad indeed. I innocently removed ncurses in order to change versions. It was not a pretty site. Emerge and other programs went south. I had to untar the stage3 in a temp dir and manually place the ncurses library files in the appropriate directories and was then able to emerge ncurses.
_________________
Frustration leads to knowledge.
Back to top
View user's profile Send private message
toylas
n00b
n00b


Joined: 04 Jun 2007
Posts: 14

PostPosted: Tue Jun 12, 2007 12:59 am    Post subject: Reply with quote

Hi All,

I installed gentoo on a 5G partition on a really old comp. The base installation with a few things like (mplayer, evince, xfce,fluxbox, gnuplot and a couple more) grew to over 3G. I moved pportage to a bigger partition following the FAQ given here. Even after that the base installation remains over 2G. I noticed I had both gcc-4.1.1 and gcc-3.3.6, both qt-3.3.8 and qt-4.2.3 installed. Will it be safe to remove the older versions? Also how can I find out other unused packages which are safe to remove?

Thanks,
Tulasi
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1658
Location: Berlin, Germany

PostPosted: Sun Apr 13, 2008 2:06 pm    Post subject: Reply with quote

please add coreutils to the list (bug 217239 caused some people to unmerge it).
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1658
Location: Berlin, Germany

PostPosted: Thu Oct 30, 2008 5:14 pm    Post subject: Reply with quote

Please also add portage to the list (bug 244975)
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sun Nov 02, 2008 12:12 am    Post subject: Reply with quote

toylas wrote:
Hi All,

I installed gentoo on a 5G partition on a really old comp. The base installation with a few things like (mplayer, evince, xfce,fluxbox, gnuplot and a couple more) grew to over 3G. I moved pportage to a bigger partition following the FAQ given here. Even after that the base installation remains over 2G. I noticed I had both gcc-4.1.1 and gcc-3.3.6, both qt-3.3.8 and qt-4.2.3 installed. Will it be safe to remove the older versions? Also how can I find out other unused packages which are safe to remove?

Thanks,
Tulasi


You can remove gcc-3.3.6 if you don't use it. Run gcc-config -l to see which profile is active. Look here for detailed information
Then to remove gcc-3.3.6 run
Code:
emerge --nodeps --prune --ask gcc



You can see and remove what else is cluttering your system by running this, but emerge gentoolkit first if you don't have it installed,
Code:
emerge -uDNav world
emerge --depclean -av
revdep-rebuild -- --ask
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1658
Location: Berlin, Germany

PostPosted: Tue Jul 28, 2009 9:54 am    Post subject: Reply with quote

Please add "libpcre if grep is compiled with USE=pcre" to the list.
If you unmerge it, then grep will stop working and emerging grep fails with something like this
Code:
checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /usr/lib64/portage/bin/ebuild-helpers:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.5:/usr/xpg4/bin
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Sep 15, 2009 5:02 pm    Post subject: Reply with quote

Looks like eselect-python belongs in this list
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1658
Location: Berlin, Germany

PostPosted: Mon Mar 08, 2010 2:41 pm    Post subject: Reply with quote

Please add dev-libs/gmp to the list (bug 308461)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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