Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] keeping the system fully updated
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
kolcon
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2007
Posts: 96
Location: Europe, CZ

PostPosted: Sat Jul 24, 2010 11:05 am    Post subject: [HOWTO] keeping the system fully updated Reply with quote

Do you want to keep your system up-to-date as much as possible?

Try the following steps:
Regular update

  1. update your portage
    Code:
     emerge --sync

  2. (optional) update your layman overlays
    Code:
     layman -S

  3. check what would be updated
    Code:
     emerge -upvND world

  4. (optional) amend the use flags
    Code:
     vi /etc/make.conf
    for system-wide changes or
    Code:
     vi /etc/portage/package.use
    for packages-level changes
  5. run the update
    Code:
     emerge -uND world

  6. emerge live packages (if any)
    Code:
     emerge @live-rebuild

  7. review the messages given and take actions recommended there
    Code:
     less /var/log/portage/elog/summary.log
    or use
    Code:
     elogv

  8. if you get messages about changes in etc-files, run
    Code:
     etc-update
    and merge the files as you see fit
    alternatively use
    Code:
     dispatch-conf


  9. if you emerged xorg-server, re-emerge all xf86-input- and xf86-video- modules,
    that you are using
    Code:
     emerge -av `qlist -I -C x11-drivers/`



Extra optimizations - no need to run them every time

  1. check if something can be removed
    Code:
     emerge --depclean -p
    , then when you are happy with the output
    (if it wants to remove packages you need to keep, add them to /var/lib/portage/world)
    Code:
     emerge --depclean

  2. emerge packages using obsolete libraries
    Code:
     emerge @preserved-rebuild

  3. make sure the system is consistent
    Code:
     revdep-rebuild

  4. check if the .la files are consistent (you may need to emerge dev-util/lafilefixer first)
    Code:
     lafilefixer --justfixit

  5. check if the perl modules are updated for the current perl version
    Code:
     perl-cleaner --reallyall

  6. check if the python modules are updated for the current python version
    Code:
     python-updater

  7. update the usb and pci id definitions
    Code:
     update-pciids

    Code:
     update-usbids

  8. delete old unused kernel sources
    Code:
     rm -rf /usr/src/linux-2.6.XX-gentoo-XX

    Code:
     rm -rf /lib/modules/2.6.XX-gentoo-XX

  9. cleanup your distfiles
    Code:
     eclean distfiles




Last edited by kolcon on Sun Oct 17, 2010 1:56 pm; edited 8 times in total
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sat Jul 24, 2010 11:09 am    Post subject: Re: keeping the system fully updated Reply with quote

kolcon wrote:
[*] check if the .la files are consistent (you may need to emerge dev-util/lafilefixer first)
Code:
 lafilefixer --justfixit

I share the opinion of those who consider that lafilefixer should not be run systematically. i.e. without some specific good reason to do so.

As step 6, I would as well invite people to read /var/log/portage/elog/summary.log and take appropriate actions as advised
Back to top
View user's profile Send private message
kolcon
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2007
Posts: 96
Location: Europe, CZ

PostPosted: Sat Jul 24, 2010 11:16 am    Post subject: Re: keeping the system fully updated Reply with quote

aCOSwt wrote:
kolcon wrote:
[*] check if the .la files are consistent (you may need to emerge dev-util/lafilefixer first)
Code:
 lafilefixer --justfixit

I share the opinion of those who consider that lafilefixer should not be run systematically. i.e. without some specific good reason to do so.

As step 6, I would as well invite people to read /var/log/portage/elog/summary.log and take appropriate actions as advised


thanks, changes incorporated...
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Jul 24, 2010 2:54 pm    Post subject: Reply with quote

You can even run elogv just to be sure that you haven't miss something.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Sat Jul 24, 2010 6:39 pm    Post subject: Reply with quote

What package does "elogv" come from? Seems i don't have it installed.
Back to top
View user's profile Send private message
kolcon
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2007
Posts: 96
Location: Europe, CZ

PostPosted: Sat Jul 24, 2010 7:04 pm    Post subject: Reply with quote

rh1 wrote:
What package does "elogv" come from? Seems i don't have it installed.


app-portage/elogv
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Jul 25, 2010 1:49 pm    Post subject: Reply with quote

Also, you will need to had this inside your /etc/make.conf :
Code:

PORTAGE_ELOG_CLASSES="log warn error info"
PORTAGE_ELOG_SYSTEM="echo:log,error,warn,info  save:log,error,warn,info syslog:log,error,warn,info"
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Jul 25, 2010 2:41 pm    Post subject: Reply with quote

Elogv is a little program that give us all the portage message but per package.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Sun Jul 25, 2010 6:38 pm    Post subject: Reply with quote

Thanks, I had mine set up for save_summary but now switched to save and emerged a few things so i could try it., have to say elogv is much nicer.
Quote:
Code:
PORTAGE_ELOG_SYSTEM="echo:log,error,warn,info  save:log,error,warn,info syslog:log,error,warn,info"

I didn't see this syntax in the handbook, or anywhere else. Handbook just says about a space seperated list. Looks interesting, I thought you could only list the classes all in PORTAGE_ELOG_CLASSES. I never realized I could define different options for save and syslog.
If you would indulge me, I'm curious as to what the "echo" part does.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Jul 25, 2010 7:40 pm    Post subject: Reply with quote

I don't know about the echo part, I copied that line from someone :P
Back to top
View user's profile Send private message
kolcon
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2007
Posts: 96
Location: Europe, CZ

PostPosted: Fri Aug 13, 2010 1:15 pm    Post subject: xorg-server Reply with quote

added the xorg-server part
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Aug 13, 2010 1:35 pm    Post subject: Reply with quote

You can even run this :
Code:

# emerge -1v $(qlist -IC x11-drivers)
Back to top
View user's profile Send private message
Jallee
n00b
n00b


Joined: 17 Oct 2010
Posts: 29
Location: Sweden

PostPosted: Sun Oct 17, 2010 12:47 pm    Post subject: Reply with quote

Here is one more..
Code:
eclean distfiles
Back to top
View user's profile Send private message
norg
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2010
Posts: 104
Location: Augsburg (Germany)

PostPosted: Sun Oct 17, 2010 1:52 pm    Post subject: Re: [HOWTO] keeping the system fully updated Reply with quote

kolcon wrote:

[*] if you get messages about changes in etc-files, run
Code:
 etc-update
and merge the files as you see fit

Isn't the new option "dispatch-conf" that's recommended?
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Wed Oct 27, 2010 3:16 am    Post subject: Reply with quote

Assuming you have eix installed, instead of doing
Code:
emerge --sync
followed by
Code:
layman -S
just run
Code:
eix-sync
instead.

And even if you didn't use layman, this syncing method would be preferred because it updates the little database that eix uses automatically (instead of you syncing then separately telling eix to recreate the database).
_________________
My political stance/bias
slycordinator != slycoordinator
Back to top
View user's profile Send private message
FelixPetzold
n00b
n00b


Joined: 10 May 2010
Posts: 24
Location: Paderborn/Germany

PostPosted: Wed Nov 10, 2010 7:48 am    Post subject: Reply with quote

Have a look at https://forums.gentoo.org/viewtopic-t-827398.html (last post)
Back to top
View user's profile Send private message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 171

PostPosted: Tue Dec 07, 2010 11:42 pm    Post subject: Reply with quote

Some suggestions:

1) Instead of using
Code:
emerge @live-rebuild
use app-portage/smart-live-rebuild instead. It just rebuilds packages that has changed. So it would be
Code:
 emerge @smart-live-rebuild


2)
Code:
emerge -1v $(qlist -IC x11-drivers)
seems to be outdated, there is now
Code:
emerge @x11-module-rebuild
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