Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -U world - How often
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 943
Location: Bash$

PostPosted: Tue May 25, 2004 9:05 pm    Post subject: Reply with quote

Hehe. You're probably right. I tend to learn the hard way, but I guess I should learn from other peoples mistakes. Note however, when I've used the 'ACCEPT_KEYWORDS="~x86" emerge -av package' approach, I've only emerged one package at a time, never the dependencies. So adding them to a packages.keywords would amount to the same thing. I notice when my apps break, and can manually downgrade them. That hasn't happened yet though.

I'm also easily threatened. Hereby fixed. You know, I just noticed something else: Adding the packages to packages.keywords makes the hole process of updating a lot easier...
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
TvL2386
n00b
n00b


Joined: 27 May 2004
Posts: 1

PostPosted: Thu May 27, 2004 10:39 pm    Post subject: Reply with quote

Hi....

I'm still a noob on Linux and I've run your set of commands to update my system instead of the "emerge sync && emerge -DUu world" I've been using so far.

I've read this whole thread but a problem occured which I cannot fix.
My pc now tells me it needs "libgdbm.so.2" in order to run apache.

I thought the breaking of packages should be automatically fixed after a depclean and stuff.....

I'm scared my Gentoo is fried...
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu May 27, 2004 11:53 pm    Post subject: Reply with quote

Sounds like you haven't run this one yet:

Code:
revdep-rebuild

_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 943
Location: Bash$

PostPosted: Fri May 28, 2004 4:23 am    Post subject: Reply with quote

TvL2386 wrote:
I thought the breaking of packages should be automatically fixed after a depclean and stuff.....


"emerge depclean" can do things like that. Try not to run it too often. It's always easy to fix though (see above).
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri May 28, 2004 9:07 am    Post subject: Reply with quote

No no, emerge depclean should be run often. Having extraneous packages on your system increases both the attack surface and the potential for instability. Plus, they won't get updated if there's a security hole in one of them, even if you do an "emerge -uD world". It's perfectly safe as long as you check it's not going to remove anything drastically important (like coreutils or portage) and as long as you run revdep-rebuild afterwards.
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
Vagrant
n00b
n00b


Joined: 26 May 2004
Posts: 1
Location: Australia

PostPosted: Fri May 28, 2004 4:56 pm    Post subject: Reply with quote

You know what, I wish I had read this thread a few days ago.. :cry:

Hopefully I won't break my system again any time soon.. :roll:

Cheers. :D
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Fri May 28, 2004 7:00 pm    Post subject: Reply with quote

Vagrant wrote:
You know what, I wish I had read this thread a few days ago.. :cry:


Well, if that didn't break the moderator's heart, what would? Please make this thread sticky, please!
Back to top
View user's profile Send private message
teedog
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 211

PostPosted: Sat May 29, 2004 5:47 am    Post subject: Reply with quote

robmoss2k wrote:
My system is rock stable, and I use this process to update it:

Code:
emerge sync
emerge -uDpv world
emerge -uDv world
emerge -pv depclean
emerge -v depclean
revdep-rebuild -pv
revdep-rebuild -v
dispatch-conf


robmoss2k, maybe you should replace depclean with "pruneworld -d". I bet lots of people read this post since it is linked to below your numerous helpful posts. :) Wouldn't want people to run the stupid depclean which breaks things most of the time, would we?
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Sat May 29, 2004 1:02 pm    Post subject: Reply with quote

I'm going to update it as soon as I'm satisfied that pruneworld is sufficiently stable. It's much, much better, but Ed is about to split everything off into various different scripts to make everything more modular, so I'm going to let him do that and then let everything settle down again before I start recommending that.
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sat May 29, 2004 9:37 pm    Post subject: Reply with quote

teedog wrote:
robmoss2k, maybe you should replace depclean with "pruneworld -d". I bet lots of people read this post since it is linked to below your numerous helpful posts. :) Wouldn't want people to run the stupid depclean which breaks things most of the time, would we?

I agree, but for me it's to avoid accidentally unmerging something I use. For example, here's part of the messages produced by typing 'emerge -pv depclean' on my system:
Code:
>>> These are the packages that I would unmerge:

media-sound/mpg123
    selected: 0.59s-r2
   protected: none
     omitted: none

sys-apps/qingy
    selected: 0.4.0
   protected: none
     omitted: none

_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Sat May 29, 2004 9:39 pm    Post subject: Reply with quote

Okay, I'll sort that later on. He's renaming things right now, so once he's done that I'll update my procedure as outlined above.
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sat May 29, 2004 10:08 pm    Post subject: Reply with quote

It turns out those packages are missing in my world file (probably caused by some bad emerging habit I used to have many months ago). :oops: Now by putting them in the package.keywords file and reemerging, the problem is gone. :)
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Sat May 29, 2004 10:16 pm    Post subject: Reply with quote

Excellent :)

He's broken pruneworld (and renamed it to dep) in the renaming process - it will need fixing before I link to it...
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
Stubzz
n00b
n00b


Joined: 02 Apr 2004
Posts: 28

PostPosted: Tue Jun 01, 2004 2:57 pm    Post subject: Reply with quote

I've been trying to use the proper method that robmoss2k has said in this thread but I've got a question. When ever I try to install a masked package such as entrance, I'll put entrance into my packageskeywords file and it installs fine. However some of it's dependancies are still masked (such as edje in this example), should I add them to my keywords file too? I didn't really want to add to many 'unstable' packages in there and not have a clue what breaks if/when my systems does
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue Jun 01, 2004 10:29 pm    Post subject: Reply with quote

Yes, you will need to add dependencies; that or reeevaluate installing the masked package.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
barcodez
n00b
n00b


Joined: 04 May 2004
Posts: 69

PostPosted: Sat Jun 05, 2004 5:31 pm    Post subject: Reply with quote

any chance of the pruneworld enchanced version of this howto?
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Sat Jun 05, 2004 7:56 pm    Post subject: Reply with quote

Not unless Ed decides to split off his programme into two trees - "dep" and "dep-stable" (pruneworld is now called dep). It's broken here at the moment...
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
shenakan
n00b
n00b


Joined: 06 Nov 2003
Posts: 37
Location: Toulouse France

PostPosted: Sun Jun 06, 2004 10:13 pm    Post subject: Reply with quote

I get this meessage for emerge --oneshot ORBit2 libidl

Code:

merge --oneshot ORBit2 libidl
Calculating dependencies \
emerge: there are no masked or unmasked ebuilds to satisfy "libidl".

!!! Error calculating dependencies. Please correct.
Back to top
View user's profile Send private message
dhurt
Apprentice
Apprentice


Joined: 14 May 2003
Posts: 278
Location: Davis, CA

PostPosted: Sun Jun 06, 2004 11:41 pm    Post subject: Reply with quote

Question about rev-deprebuild. I used to run gnome destktop on this system and now have gotten rid of it, but some of the library files seem to still be around. Thank goodness I finally got revdep from trying to rebuild ORBit and whatnot. They do not seem to be associated with any programs. How would I go about removing the files, or should I even care?

1) Is it safe to just delete them?

2) Should I use the file system cruft program?

For instance:

Code:

# revdep-rebuild
Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update, will be recompiled.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/lib/libgdkcardimage.so.0.0.0 (requires libgnomeui-2.so.0 libbonoboui-2.so.0 libgnomecanvas-2.so.0 libgnome-2.so.0 libbonobo-2.so.0 libgconf-2.so.4 libgnomevfs-2.so.0 libbonobo-activation.so.4 libORBit-2.so.0)

<snip>

broken /usr/lib/libnautilus.so.2.0.0 (requires libgnomeui-2.so.0 libglade-2.0.so.0 libbonoboui-2.so.0 libgnomecanvas-2.so.0 libgnome-2.so.0 libbonobo-2.so.0 libgconf-2.so.4 libgnomevfs-2.so.0 libbonobo-activation.so.4 libORBit-2.so.0 libgnomeui-2.so.0 libbonoboui-2.so.0 libgnomecanvas-2.so.0 libgnome-2.so.0 libbonobo-2.so.0 libgconf-2.so.4 libgnomevfs-2.so.0 libbonobo-activation.so.4 libORBit-2.so.0 libglade-2.0.so.0 libgnomecanvas-2.so.0)
  broken /opt/Maple9/bin.IBM_INTEL_LINUX/matlink.so (requires libmx.so libeng.so)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.


[code]
_________________
"And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Mon Jun 07, 2004 12:25 am    Post subject: Reply with quote

shenakan: Sorry, it shoudl have been this:

Code:
emerge --oneshot ORBit2 libIDL


ender2431 wrote:
Question about revdep-rebuild. I used to run gnome destktop on this system and now have gotten rid of it, but some of the library files seem to still be around. Thank goodness I finally got revdep from trying to rebuild ORBit and whatnot. They do not seem to be associated with any programs. How would I go about removing the files, or should I even care?

1) Is it safe to just delete them?

2) Should I use the file system cruft program?


You should get both "dep" and "cruft" - two of ecatmur's scripts. Use "dep -d" to clean out any and all unnecessary packages. Once you've done that, run "cruft" to find out what's been left over from any package unmerges. Then, remove /root/.revdep* and re-run revdep-rebuild. It is indeed safe to "just delete them" as long as they don't belong to anything.
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
calhoun
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2003
Posts: 91
Location: Point Pleasant, NJ

PostPosted: Tue Jun 08, 2004 3:56 am    Post subject: Reply with quote

:)
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue Jun 08, 2004 4:05 am    Post subject: Reply with quote

"dep -s" now - apparently it's only a little slower than "dep -d", and it catches circular dependency tumours.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
larand54
l33t
l33t


Joined: 20 Feb 2004
Posts: 688
Location: Sweden

PostPosted: Tue Jun 08, 2004 6:07 am    Post subject: Reply with quote

After running
Code:
emerge  -pv depclean
I'll get this:
Code:
Packages installed:   239
Packages in world:    1
Packages in system:   66
Unique package names: 104
Required packages:    105
Number to remove:     135

Of course there where a list of packages that would be removed before this.

How would I know if i t safe to run:
Code:
emerge  -v depclean


Is there a way to check each package in the list or do I have to check each package manually?

A hell of a work!
:?

I don't either know if I shall run
Code:
 etc-update
even if the system recommend me to. Its around 80 files to update. And there's no help to do the check. I looked at a couple of files but they just looked like some skeletons.

What help do the -p switch give me? Ok it presents you with a list of packages buthow would I know how to deal with it?
If I really find some packet that I'm sure I would not like to have in the list - what can I do with it?
For me it's more like ' Run the command - and pray'
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Tue Jun 08, 2004 9:10 am    Post subject: Reply with quote

larand54 wrote:


A hell of a work!
:?

I don't either know if I shall run
Code:
 etc-update
even if the system recommend me to. Its around 80 files to update. And there's no help to do the check. I looked at a couple of files but they just looked like some skeletons.

What help do the -p switch give me? Ok it presents you with a list of packages buthow would I know how to deal with it?
If I really find some packet that I'm sure I would not like to have in the list - what can I do with it?
For me it's more like ' Run the command - and pray'


P switch is pretend, it tells you what will happen without the -p.

The above are why etc-update and emerge depclean shoudl be run often.

The more you do it, the less there is to do each time.

etc-update, *must* be run, it is vital.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
hepta_sean
Apprentice
Apprentice


Joined: 27 Apr 2004
Posts: 246
Location: Berlin, Germany

PostPosted: Tue Jun 08, 2004 12:14 pm    Post subject: Reply with quote

larand54 wrote:
Code:
Packages in world:    1


This doesn't look good. Did you emerge all of your packages with --oneshot? Otherwise they should have been included in the world file automatically.

So you should go through the list of packages, emerge -p depclean would unmerge and add the ones you want to the world file. If you're really sure, that you want to clean everything emerge -p depclean outputs, you can issue emerge depclean and they will all be removed. After that you should do revdep-rebuild, this will rebuild all binaries, that were linked against removed packages.

Quote:
Is there a way to check each package in the list or do I have to check each package manually?


What do you mean by check? No, the computer can't figure out, what you want to have on your system.

Quote:
I don't either know if I shall run
Code:
etc-update
even if the system recommend me to. Its around 80 files to update. And there's no help to do the check. I looked at a couple of files but they just looked like some skeletons.


You should definitely update the configuration files, as nevynxx already said. You could use dispatch-conf instead, which has abilities to automatically update changes in CVS-headers, comments or whitespace and files not touched by the user. (Look into /etc/dispatch-conf.conf for configuring these features.)

HTH, sean
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 5 of 10

 
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