* [gentoo-user] System maintainance, "emerge --depclean", "revdep-rebuild"
@ 2006-07-19 0:05 Alan E. Davis
2006-07-19 5:54 ` [gentoo-user] " Francesco Talamona
2006-07-19 7:35 ` [gentoo-user] " Richard Fish
0 siblings, 2 replies; 4+ messages in thread
From: Alan E. Davis @ 2006-07-19 0:05 UTC (permalink / raw
To: gentoo-user
I have some serious issues trying to maintain three gentoo systems. I
fear it's time to ask for advice.
I have avoided "emerge --depclean" since I installed all three of my
systems last november. I do update two of the machines frequently.
Many issues and compilation failures are popping up, and ordinarily I
muddle through a few attempts at "emerge -uDv world" until the
problems go away. I have not faithfully either done "revdep-rebuild".
Now I have been trying again to follow up on maintainance. It's not
working.
I have avoided "emerge --depclean" in spite of the recommendations of
several list members both to me and as a matter of course in day to
day messages. However, I am reluctant because of none other than the
initial messages when trying to do so:
*** WARNING *** --depclean is known to be broken. It is highly recommended
*** WARNING *** that `emerge --update --newuse --deep world` be ran before
*** WARNING *** commencing. However, using --depclean may still break link
*** WARNING *** level consistency within your system. `revdep-rebuild`
*** WARNING *** from app-portage/gentoolkit can help to detect breakage.
*** WARNING ***
etc.
Here are the stats at the end of "remerge --depglean" I just tried today:
| Packages installed: 1477
| Packages in world: 320
| Packages in system: 65
| Unique package names: 906
| Required packages: 933
| Number to remove: 569
When running revdep-rebuild, when I try to do every once in a while,
invariably, the first package that is attempted to recompile fails,
and the process then fails.
I have installed a large number of packages, to do a large number of
things. There are many programs I could do without. The problem with
this approach is the enormous amount of time involved in simple
updates. My laptop, with only a 50GB HDD, requires to download 700GB
to emerge -uDv world. I am on a dialup at home, at school where I
work, the network is inconsistent, and even with several visits to a
wireless cafe, I am unable to complete this process.
It's time to thin down. I have installed kde and gnome, and a bunch
of other display/window managers. I now use enlightenment 17
exclusively, so I could do away with a lot of cruft. But emerge
--depclean is removing quite a few programs that are useful to me.
I am still being bitten by libexpat.so.0 quite frequently. One of two
of the programs involved are serious problems, since the offenders are
other libraries or dependencies. Usually I can just re-emerge the
affected package, and the problem is temporarily solved. Some
programs that I have done that for, are now, after a couple of months,
doing it again.
Should I go ahead and "emerge --depclean"? How about revdep-rebuild?
I am spending my entire summer trying to deal with these systems. I
loathe to do this process package by package.
Thanks for any ideas.
By the way, one of my systems broke down, so I'll be installing from
scratch. One will be much more conservative about installing
packages---at least gnome, kde, and other window managers.
Alan Davis
lngndvs@gmail.com
--
Alan Davis, Kagman High School, Saipan lngndvs@gmail.com 1-670-256-2043
I consider that the golden rule requires that if I like a program I
must share it with other people who like it.
--------Richard Stallman
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: System maintainance, "emerge --depclean", "revdep-rebuild"
2006-07-19 0:05 [gentoo-user] System maintainance, "emerge --depclean", "revdep-rebuild" Alan E. Davis
@ 2006-07-19 5:54 ` Francesco Talamona
2006-07-19 7:32 ` Alan E. Davis
2006-07-19 7:35 ` [gentoo-user] " Richard Fish
1 sibling, 1 reply; 4+ messages in thread
From: Francesco Talamona @ 2006-07-19 5:54 UTC (permalink / raw
To: gentoo-user
On Wednesday 19 July 2006 02:05, Alan E. Davis wrote:
> updates. My laptop, with only a 50GB HDD, requires to download 700GB
> to emerge -uDv world.
It's very odd... I had a common repository for four gentoo boxes,
(various arches) and after months of upgrade it was less than 13 GB.
Packages installed in main system: 1225.
> It's time to thin down.
It's time to rationalize :-)
I have ${DISTDIR} (see /etc/make.conf) on an external disk, common to
all systems.
Ciao
Francesco
--
Linux Version 2.6.17-gentoo-r2, Compiled #1 PREEMPT Sat Jul 8 07:47:35
CEST 2006
One 2.2GHz AMD Athlon 64 Processor, 2GB RAM, 4410.81 Bogomips Total
aemaeth
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: System maintainance, "emerge --depclean", "revdep-rebuild"
2006-07-19 5:54 ` [gentoo-user] " Francesco Talamona
@ 2006-07-19 7:32 ` Alan E. Davis
0 siblings, 0 replies; 4+ messages in thread
From: Alan E. Davis @ 2006-07-19 7:32 UTC (permalink / raw
To: gentoo-user
My mistake: 700MB NOT 700GB. Nevertheless, I mean to take a look at
your advice.
One machine is ordinarily at school on a sporadically fast connection
(but not during working hours, when it is slower than a dialup). One
is a laptop, with the least HDD space. The other (now crashed) is at
home. The firewall at work makes it very difficult or well nigh onto
impossible to ssh into that box, and the box at home is only on line
when I dial in.
I want to set up a $DISTDIR. An external disk would work. When I have one.
Alan
On 7/19/06, Francesco Talamona <ti.liame@email.it> wrote:
> On Wednesday 19 July 2006 02:05, Alan E. Davis wrote:
> > updates. My laptop, with only a 50GB HDD, requires to download 700GB
> > to emerge -uDv world.
> It's very odd... I had a common repository for four gentoo boxes,
> (various arches) and after months of upgrade it was less than 13 GB.
> Packages installed in main system: 1225.
>
> > It's time to thin down.
> It's time to rationalize :-)
>
> I have ${DISTDIR} (see /etc/make.conf) on an external disk, common to
> all systems.
>
> Ciao
> Francesco
>
> --
> Linux Version 2.6.17-gentoo-r2, Compiled #1 PREEMPT Sat Jul 8 07:47:35
> CEST 2006
> One 2.2GHz AMD Athlon 64 Processor, 2GB RAM, 4410.81 Bogomips Total
> aemaeth
> --
> gentoo-user@gentoo.org mailing list
>
>
--
Alan Davis, Kagman High School, Saipan lngndvs@gmail.com 1-670-256-2043
I consider that the golden rule requires that if I like a program I
must share it with other people who like it.
--------Richard Stallman
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] System maintainance, "emerge --depclean", "revdep-rebuild"
2006-07-19 0:05 [gentoo-user] System maintainance, "emerge --depclean", "revdep-rebuild" Alan E. Davis
2006-07-19 5:54 ` [gentoo-user] " Francesco Talamona
@ 2006-07-19 7:35 ` Richard Fish
1 sibling, 0 replies; 4+ messages in thread
From: Richard Fish @ 2006-07-19 7:35 UTC (permalink / raw
To: gentoo-user
On 7/18/06, Alan E. Davis <lngndvs@gmail.com> wrote:
> I have avoided "emerge --depclean" in spite of the recommendations of
> several list members both to me and as a matter of course in day to
> day messages. However, I am reluctant because of none other than the
> initial messages when trying to do so:
Depclean can be a problem if you have not fully updated your system.
There are two things required for depclean to be "safe":
1. "emerge -DNuvp world" must produce nothing.
2. revdep-rebuild must not want to rebuild anything.
But even if these 2 things are satisfied, depclean could still remove
packages that you really want installed, so it is always best to
review the list to watch for unwanted removals.
> It's time to thin down. I have installed kde and gnome, and a bunch
> of other display/window managers. I now use enlightenment 17
> exclusively, so I could do away with a lot of cruft. But emerge
> --depclean is removing quite a few programs that are useful to me.
If there is something in the --depclean output that you want to keep, use
emerge --noreplace <pkg>
to add it to the world file and prevent depclean from removing it or
any of its dependancies.
> I am still being bitten by libexpat.so.0 quite frequently. One of two
> of the programs involved are serious problems, since the offenders are
> other libraries or dependencies. Usually I can just re-emerge the
> affected package, and the problem is temporarily solved. Some
> programs that I have done that for, are now, after a couple of months,
> doing it again.
You use revdep-rebuild to rebuild any packages that depend on a
specific library. In this case, you should be able to solve these
problems permanently with:
revdep-rebuild --library=libexpat.so.0
> Should I go ahead and "emerge --depclean"? How about revdep-rebuild?
> I am spending my entire summer trying to deal with these systems. I
> loathe to do this process package by package.
What I would recommend at this point:
1. review your world file (/var/lib/portage/world). Take out any
packages (like KDE or Gnome) that you no longer care about having
installed.
2. Review the output of "emerge --depclean --pretend world". For any
packages that you do not want removed, use "emerge --noreplace" to add
them to world. This is actually optional, you can always re-merge
stuff later if you need it.
3. Review your /etc/make.profile link. Now is as good a time as any
to update your profile if you are not using 2006.0. (assuming you are
using the default-linux/x86 profiles):
cd /etc
rm make.profile
ln -s ../usr/portage/profiles/default-linux/x86/2006.0 make.profile
4. From your local internet cafe, "emerge -DNuv --fetchonly world".
This will download the distfiles needed to get your system up-to-date.
No compiling at this point, although you might want to pick up some
coffee! :-)
5. Run "emerge -DNuv system", followed by etc-update, python-updater,
and perl-cleaner. This should get your required system packages fully
current, and should ensure that python (really critical!) and perl
keep working.
6. If you have not yet updated to gcc-3.4.6, you will want to follow
the gcc upgrade guide [1] at this point. You can choose between the
revdep-rebuild route or the emerge -e system; emerge -e world route.
The revdep-rebuild is usually faster, but probably works best on an
otherwise up-to-date and clean system. Actually for the number of
packages you have installed, and the number of things depclean wants
to remove, the revdep-rebuild method might be slower than "emerge -e
system ; emerge -e world"! So I would probably recommend the emerge
-e steps, and if you do that you can skip to step 9 below.
7. Run "emerge -e system". This is probably not necessary, but just
in case the depclean would remove something that would break dynamic
linking, this will make sure you maintain a system that works well
enough to complete the rest of steps.
8. Run "emerge -DNuv world". This should get the rest of your system
up to date.
9. Run "emerge --depclean world".
10. Run "revdep-rebuild".
That should get you fully up to date with a consistent system.
At this point, you may want to do something a bit dangerous, and look
at the output of "emerge --prune --pretend world". Prune *is* a
dangerous command, and should *never* be run against world without the
pretend option. It's main use here is to identify obsolete slotted
packages (like old KDE versions, old kernel sources, old gcc versions,
etc) that you can safely remove. For these, you can do "emerge
--prune gcc", "emerge --prune gentoo-sources", etc. Do not prune any
autoconf or automake packages. Glib, gtk, and qt packages should
probably be left alone as well. It is always a good idea to quickpkg
things before pruning, and follow a prune with "emerge -Dv
--usepkgonly world" to re-install anything that really is required.
[1] http://www.gentoo.org/doc/en/gcc-upgrading.xml
HTH,
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-19 7:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-19 0:05 [gentoo-user] System maintainance, "emerge --depclean", "revdep-rebuild" Alan E. Davis
2006-07-19 5:54 ` [gentoo-user] " Francesco Talamona
2006-07-19 7:32 ` Alan E. Davis
2006-07-19 7:35 ` [gentoo-user] " Richard Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox