View previous topic :: View next topic |
Author |
Message |
kolcon Tux's lil' helper
Joined: 21 Sep 2007 Posts: 96 Location: Europe, CZ
|
Posted: Sat Jul 24, 2010 11:05 am Post subject: [HOWTO] keeping the system fully updated |
|
|
Do you want to keep your system up-to-date as much as possible?
Try the following steps:
Regular update
- update your portage
(optional) update your layman overlays
check what would be updated
Code: | emerge -upvND world |
(optional) amend the use flags
for system-wide changes or
Code: | vi /etc/portage/package.use | for packages-level changes
run the update
emerge live packages (if any)
Code: | emerge @live-rebuild |
review the messages given and take actions recommended there
Code: | less /var/log/portage/elog/summary.log | or use
if you get messages about changes in etc-files, run
and merge the files as you see fit
alternatively use
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
- 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)
emerge packages using obsolete libraries
Code: | emerge @preserved-rebuild |
make sure the system is consistent
check if the .la files are consistent (you may need to emerge dev-util/lafilefixer first)
Code: | lafilefixer --justfixit |
check if the perl modules are updated for the current perl version
Code: | perl-cleaner --reallyall |
check if the python modules are updated for the current python version
update the usb and pci id definitions
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 |
cleanup your distfiles
Last edited by kolcon on Sun Oct 17, 2010 1:56 pm; edited 8 times in total |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sat Jul 24, 2010 11:09 am Post subject: Re: keeping the system fully updated |
|
|
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 |
|
|
kolcon Tux's lil' helper
Joined: 21 Sep 2007 Posts: 96 Location: Europe, CZ
|
Posted: Sat Jul 24, 2010 11:16 am Post subject: Re: keeping the system fully updated |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Jul 24, 2010 2:54 pm Post subject: |
|
|
You can even run elogv just to be sure that you haven't miss something. |
|
Back to top |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Sat Jul 24, 2010 6:39 pm Post subject: |
|
|
What package does "elogv" come from? Seems i don't have it installed. |
|
Back to top |
|
|
kolcon Tux's lil' helper
Joined: 21 Sep 2007 Posts: 96 Location: Europe, CZ
|
Posted: Sat Jul 24, 2010 7:04 pm Post subject: |
|
|
rh1 wrote: | What package does "elogv" come from? Seems i don't have it installed. |
app-portage/elogv |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Jul 25, 2010 1:49 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Jul 25, 2010 2:41 pm Post subject: |
|
|
Elogv is a little program that give us all the portage message but per package. |
|
Back to top |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Sun Jul 25, 2010 6:38 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Jul 25, 2010 7:40 pm Post subject: |
|
|
I don't know about the echo part, I copied that line from someone |
|
Back to top |
|
|
kolcon Tux's lil' helper
Joined: 21 Sep 2007 Posts: 96 Location: Europe, CZ
|
Posted: Fri Aug 13, 2010 1:15 pm Post subject: xorg-server |
|
|
added the xorg-server part |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Aug 13, 2010 1:35 pm Post subject: |
|
|
You can even run this :
Code: |
# emerge -1v $(qlist -IC x11-drivers)
|
|
|
Back to top |
|
|
Jallee n00b
Joined: 17 Oct 2010 Posts: 29 Location: Sweden
|
Posted: Sun Oct 17, 2010 12:47 pm Post subject: |
|
|
Here is one more..
|
|
Back to top |
|
|
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Sun Oct 17, 2010 1:52 pm Post subject: Re: [HOWTO] keeping the system fully updated |
|
|
kolcon wrote: |
[*] if you get messages about changes in etc-files, run
and merge the files as you see fit
|
Isn't the new option "dispatch-conf" that's recommended? |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Oct 27, 2010 3:16 am Post subject: |
|
|
Assuming you have eix installed, instead of doing followed by just run 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 |
|
|
FelixPetzold n00b
Joined: 10 May 2010 Posts: 24 Location: Paderborn/Germany
|
|
Back to top |
|
|
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Tue Dec 07, 2010 11:42 pm Post subject: |
|
|
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 |
|
|
|