View previous topic :: View next topic |
Author |
Message |
linuxusr n00b
Joined: 18 May 2002 Posts: 11 Location: San Angelo, Texas
|
Posted: Mon May 27, 2002 9:07 pm Post subject: emerge --update & emerge --clean |
|
|
I have a system with a freshly installed Gentoo 1.1a
the problem is it was installed almost a month ago.
So i'm faced with learning the proper sequence of events.
I read about things like:
emerge -p rsync
emerge -u rsync
emerge -u world
emerge -u system
emerge -c rsync
emerge -c world
emerge -c system
qpkg --deps
( used for checking what has duplicate installs with multiple versions) (I think)
(after doing the above)
great
do i deleate the older ones?
emerge --unmerge bla_foo-bar.01
then, just to keep it intresting there is
emerge --emptytree --pretend bla_foo-bar
I read the part in the docs refering to
" The standard way to upgrade packages under Gentoo Linux is to merge the new package, and then unmerge the old package.
"
but for some of the things that showed up in qpkg --deps
doing the above gave me problems...
somthing broke .. minor -- i got it going again (this time)
Ok you get the idea, lots of tools.
What is the proper order to impliment them?
Linuxusr |
|
Back to top |
|
|
linuxusr n00b
Joined: 18 May 2002 Posts: 11 Location: San Angelo, Texas
|
Posted: Wed May 29, 2002 5:00 pm Post subject: re: |
|
|
Well I'm still looking for an answer
I see 59 folks have looked over the question so far, with no replys.
Do I need to try to rephrase the question?
Is the answer so obvious, no one wanted to give me a rtfm?
(preferably with pointers to which fm)
TIA,
Linuxusr _________________ linux -- the lifetime learning experience |
|
Back to top |
|
|
alec Apprentice
Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Wed May 29, 2002 5:14 pm Post subject: |
|
|
Yeah, it's sorta RTFM. Do a 'man emerge'
Basically, too update your system (run these seperately):
Code: | emerge rsync
emerge --pretend --update system
emerge --update system
emerge --pretend --update world
emerge --update world
emerge --pretend clean
emerge clean |
|
|
Back to top |
|
|
linuxusr n00b
Joined: 18 May 2002 Posts: 11 Location: San Angelo, Texas
|
Posted: Wed May 29, 2002 5:34 pm Post subject: |
|
|
thanks for the reply alec
any comments on the 'emerge --emptytree --pretend bla_foo-bar' part?
I read in another post where it killed one guys box.
Linuxusr _________________ linux -- the lifetime learning experience |
|
Back to top |
|
|
alec Apprentice
Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Wed May 29, 2002 7:06 pm Post subject: |
|
|
From doing a 'emerge --help'
Quote: | --emptytree (-e short option)
Virtually tweaks the tree of installed packages to only contain
glibc, this is great to use together with --pretend. This makes
it possible for developers to get a complete overview of the
complete dependency tree of a certain package. |
From http://gentoo.org/doc/portage-manual.html
Quote: | --emptytree : This option makes Portage pretend that none of the dependencies of this package or the packages it depends upon are installed. This is useful with --pretend to display a complete tree of dependencies for any particular package. All dependencies except for glibc are displayed. |
Basically, it calculates all dependencies except for glibc. For example:
Code: | melvin root # emerge --pretend --emptytree vim
These are the packages that I would merge, in order.
Calculating dependencies ...done!
[ebuild N ] sys-libs/zlib-1.1.4 to /
[ebuild N ] dev-python/python-fchksum-1.6.1 to /
[ebuild N ] sys-libs/ncurses-5.2-r5 to /
[ebuild N ] sys-libs/readline-4.1-r4 to /
[ebuild N ] dev-lang/tcl-8.3.3-r1 to /
[ebuild N ] sys-apps/groff-1.17.2-r1 to /
[ebuild N ] sys-libs/db-1.85-r1 to /
[ebuild N ] sys-libs/db-3.2.3h-r4 to /
[ebuild N ] sys-libs/gdbm-1.8.0-r5 to /
[ebuild N ] sys-devel/perl-5.6.1-r3 to /
[ebuild N ] sys-devel/flex-2.5.4a-r4 to /
[ebuild N ] x11-base/xfree-4.2.0-r9 to /
[ebuild N ] dev-lang/tk-8.3.3 to /
[ebuild N ] dev-lang/python-2.2.1 to /
[ebuild N ] dev-libs/glib-1.2.10-r4 to /
[ebuild N ] sys-devel/gettext-0.11.1 to /
[ebuild N ] dev-libs/popt-1.6.3 to /
[ebuild N ] dev-util/intltool-0.21 to /
[ebuild N ] x11-libs/gtk+-1.2.10-r7 to /
[ebuild N ] sys-apps/bash-2.05a-r2 to /
[ebuild N ] sys-apps/debianutils-1.16 to /
[ebuild N ] sys-apps/fileutils-4.1.8-r2 to /
[ebuild N ] sys-apps/portage-1.9.13 to /
[ebuild N ] sys-devel/libtool-1.4.1-r7 to /
[ebuild N ] sys-devel/m4-1.4p to /
[ebuild N ] sys-devel/autoconf-2.53a to /
[ebuild N ] sys-libs/gpm-1.19.6 to /
[ebuild N ] dev-util/cscope-15.3 to /
[ebuild N ] app-editors/vim-6.1-r7 to /
|
This shouldn't break your system - it's just recompiling, after all. I guess it's most useful if you want to see exactly what you installed along with some package, or if you want to make tbz2s for using on other systems. I don't use it at all. |
|
Back to top |
|
|
linuxusr n00b
Joined: 18 May 2002 Posts: 11 Location: San Angelo, Texas
|
Posted: Sun Jun 02, 2002 12:11 pm Post subject: emerge clean |
|
|
well it's nice to know i'm imagining my system is now broken after following the formula :
emerge rsync
emerge -u system
emerge -u world
emerge clean
after the emerge clean i get no x
when i try to use kde
a window pops up with error message about kdeinit and ksmserver being broken
if try gnome there is a loop of failed starts for x
the most maddning is mc is broke even from the command line
I guess gentoo is great as long as you get it installed and never ever mess with it after that.
Or your a genius/programmer type
Sorry for the sour grapes but this is getting rediculous
i ask for the proper steps
get no answer
then get an answer that it's right there in the fine manual
i use those steps and it breaks
but i must be imagining it ..
it couldn't have broken
it's the user didn't type in the exact steps
in the exact order
right?
Sorry for the rant, don't worry it's my last.
Don't bother to answer I'm unsubscribing and un installing.
At least i learned enuff to not be afraid of recompiling my kernel.
Thanks for the experience.
Linuxusr _________________ linux -- the lifetime learning experience |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Sun Jun 02, 2002 9:37 pm Post subject: Re: emerge clean |
|
|
linuxusr wrote: | well it's nice to know i'm imagining my system is now broken after following the formula :
emerge rsync
emerge -u system
emerge -u world
emerge clean
|
You can skip "emerge -u system", "emerge -u world" includes everything IMHO. I would recommend to add the "--pretend" option before you are doing any updates or cleaning up. :
Code: |
emerge rsync
emerge -pu world
emerge -pc
|
linuxusr wrote: |
after the emerge clean i get no x
when i try to use kde
a window pops up with error message about kdeinit and ksmserver being broken
if try gnome there is a loop of failed starts for x
the most maddning is mc is broke even from the command line
|
What does /var/log/XFree86.0.log say ? It is hard to make a guess without the proper error messages.
linuxusr wrote: |
I guess gentoo is great as long as you get it installed and never ever mess with it after that.
|
I'm doing all the updates all the time and never really broke something. Maybe you forgot to update your configfiles. Run :
Code: | find /etc -iname '._cfg????_*' |
to find new configfiles. |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Sun Jun 02, 2002 9:51 pm Post subject: Re: emerge clean |
|
|
linuxusr wrote: |
Sorry for the rant, don't worry it's my last.
Don't bother to answer I'm unsubscribing and un installing.
At least i learned enuff to not be afraid of recompiling my kernel.
Thanks for the experience. |
Umm.. i missed the line. |
|
Back to top |
|
|
|