Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 12:20 PM
Gene Poole
 
Posts: n/a
Default Keeping gentoo up-to-date -- gentoo noob.

I've been a Slackware user for years but I've recently made the switch
to Gentoo on a few boxes to see how it suits my needs. I've got my
system set up the way I like it with X11, gdm, fluxbox, and all the GUI
apps my wife needs (firefox, skype, etc). My question now is how to
keep it all up-to-date. Emerge and portage sound simple enough in
concept, but it seems like every time I dig into the docs, I discover
another command or option that I was unaware of. I'd like to script out
the update process as much as possible, but I'm not sure if I've got all
my bases covered. Here's what I do now:

emerge --sync
emerge -Du world
etc-update [follow the prompts]

I'm sure I'm missing some important steps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 12:20 PM
J.O. Aho
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

Gene Poole wrote:
> I've been a Slackware user for years but I've recently made the switch
> to Gentoo on a few boxes to see how it suits my needs. I've got my
> system set up the way I like it with X11, gdm, fluxbox, and all the GUI
> apps my wife needs (firefox, skype, etc). My question now is how to
> keep it all up-to-date. Emerge and portage sound simple enough in
> concept, but it seems like every time I dig into the docs, I discover
> another command or option that I was unaware of. I'd like to script out
> the update process as much as possible, but I'm not sure if I've got all
> my bases covered. Here's what I do now:
>
> emerge --sync
> emerge -Du world


I wouldn't use the -D, as you will be upgrading more packages than you need
and you get a higher risk of breaking another program.

emerge -u world


> etc-update [follow the prompts]



> I'm sure I'm missing some important steps.


Once in a while run

revdep-rebuild -- -p

to see if there is a broken dependency, portage ain't as good on keeping track
of all dependencies as RPM does.


--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 12:20 PM
Jerry McBride
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

Gene Poole wrote:

> I've been a Slackware user for years but I've recently made the switch
> to Gentoo on a few boxes to see how it suits my needs. I've got my
> system set up the way I like it with X11, gdm, fluxbox, and all the GUI
> apps my wife needs (firefox, skype, etc). My question now is how to
> keep it all up-to-date. Emerge and portage sound simple enough in
> concept, but it seems like every time I dig into the docs, I discover
> another command or option that I was unaware of. I'd like to script out
> the update process as much as possible, but I'm not sure if I've got all
> my bases covered. Here's what I do now:
>
> emerge --sync
> emerge -Du world
> etc-update [follow the prompts]
>
> I'm sure I'm missing some important steps.


I'd make a habit of running revdep-rebuild every once in a while, to make
sure the dependencies are up-to-date...

As for scripting it... well... you can run "emerge --sync" as a chron job,
but that would be the end of automating the update process. You don't want
to automate the "emerge -u world"... incase it wants to drag in anything
you don't want and automating "etc-update" is just totally WRONG. You would
very easily overwrite your hard earned config files in /etc if you weren't
careful...

Cheers.




--

Jerry McBride (jmcbride@mail-on.us)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 12:20 PM
Gene Poole
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

Jerry McBride wrote:
> Gene Poole wrote:
>
>> I've been a Slackware user for years but I've recently made the switch
>> to Gentoo on a few boxes to see how it suits my needs. I've got my
>> system set up the way I like it with X11, gdm, fluxbox, and all the GUI
>> apps my wife needs (firefox, skype, etc). My question now is how to
>> keep it all up-to-date. Emerge and portage sound simple enough in
>> concept, but it seems like every time I dig into the docs, I discover
>> another command or option that I was unaware of. I'd like to script out
>> the update process as much as possible, but I'm not sure if I've got all
>> my bases covered. Here's what I do now:
>>
>> emerge --sync
>> emerge -Du world
>> etc-update [follow the prompts]
>>
>> I'm sure I'm missing some important steps.

>
> I'd make a habit of running revdep-rebuild every once in a while, to make
> sure the dependencies are up-to-date...
>
> As for scripting it... well... you can run "emerge --sync" as a chron job,
> but that would be the end of automating the update process. You don't want
> to automate the "emerge -u world"... incase it wants to drag in anything
> you don't want and automating "etc-update" is just totally WRONG. You would
> very easily overwrite your hard earned config files in /etc if you weren't
> careful...
>
> Cheers.


Yeah, I understand about the etc-update thing, but is there any reason
why the "world" option would drag stuff in once the system is to my
liking? As it is now, if I run "emerge -Du world" (or system) I get
nothing. It's all up to date and has all the features I currently
need/want.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 12:20 PM
J.O. Aho
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

Gene Poole wrote:

> Yeah, I understand about the etc-update thing, but is there any reason
> why the "world" option would drag stuff in once the system is to my
> liking? As it is now, if I run "emerge -Du world" (or system) I get
> nothing. It's all up to date and has all the features I currently
> need/want.


You never know when a new version of a package will have new dependencies or
changes on default USE flags.

At the same time you may miss important information that is displayed during
the build, like that you need to rebuild some packages, so that they won't
stop working.

--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 12:20 PM
Jerry McBride
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

Gene Poole wrote:

> Jerry McBride wrote:
>> Gene Poole wrote:
>>
>>> I've been a Slackware user for years but I've recently made the switch
>>> to Gentoo on a few boxes to see how it suits my needs. I've got my
>>> system set up the way I like it with X11, gdm, fluxbox, and all the GUI
>>> apps my wife needs (firefox, skype, etc). My question now is how to
>>> keep it all up-to-date. Emerge and portage sound simple enough in
>>> concept, but it seems like every time I dig into the docs, I discover
>>> another command or option that I was unaware of. I'd like to script out
>>> the update process as much as possible, but I'm not sure if I've got all
>>> my bases covered. Here's what I do now:
>>>
>>> emerge --sync
>>> emerge -Du world
>>> etc-update [follow the prompts]
>>>
>>> I'm sure I'm missing some important steps.

>>
>> I'd make a habit of running revdep-rebuild every once in a while, to make
>> sure the dependencies are up-to-date...
>>
>> As for scripting it... well... you can run "emerge --sync" as a chron
>> job, but that would be the end of automating the update process. You
>> don't want to automate the "emerge -u world"... incase it wants to drag
>> in anything you don't want and automating "etc-update" is just totally
>> WRONG. You would very easily overwrite your hard earned config files in
>> /etc if you weren't careful...
>>
>> Cheers.

>
> Yeah, I understand about the etc-update thing, but is there any reason
> why the "world" option would drag stuff in once the system is to my
> liking? As it is now, if I run "emerge -Du world" (or system) I get
> nothing. It's all up to date and has all the features I currently
> need/want.


Applications and packages are updated daily... sometimes a package gets
update with new dependencies... perhaps ones you don't want. You'll at
least have the option to decide if you want to change the mix. Also,
depending if you are running an ~x86 configuration... you could easily
update to a package version that's still not quite bug free or other
problems.

As an example... KDE4.0 requires a no later than qt 4.3.x...some are having
to remove qt 4.4.x and fixing all the resultant dependencies that breaks or
adds...




--

Jerry McBride (jmcbride@mail-on.us)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 12:20 PM
Whoever
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.



On Tue, 22 Jan 2008, Gene Poole wrote:

> I've been a Slackware user for years but I've recently made the switch to
> Gentoo on a few boxes to see how it suits my needs. I've got my system set
> up the way I like it with X11, gdm, fluxbox, and all the GUI apps my wife
> needs (firefox, skype, etc). My question now is how to keep it all
> up-to-date. Emerge and portage sound simple enough in concept, but it seems
> like every time I dig into the docs, I discover another command or option
> that I was unaware of. I'd like to script out the update process as much as
> possible, but I'm not sure if I've got all my bases covered. Here's what I
> do now:
>
> emerge --sync
> emerge -Du world
> etc-update [follow the prompts]


Use dispatch-conf instead of etc-update. It keeps track of files where you
accepted the newer version with no changes and automatically selects the
newer version in the future. It optinally uses rcs to keep track of
changes. You will need to edit its configuration file to have it do more
automatically.


>
> I'm sure I'm missing some important steps.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 12:20 PM
Johan Lindquist
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

So anyway, it was like, 18:44 CET Jan 22 2008, you know? Oh, and, yeah,
J.O. Aho was all like, "Dude,
> Gene Poole wrote:


[..]

>> emerge --sync
>> emerge -Du world

>
> I wouldn't use the -D, as you will be upgrading more packages than
> you need and you get a higher risk of breaking another program.


I would, and do. I don't quite see the "higher risk", rather the
opposite. If a dependancy of something in my world file is updated, I
want that update too, not just the thing I've explicitly merged.

An 'emerge --depclean' will indicate if you have orphaned packages
left around, and running revdep-rebuild as well will turn up broken
packages afterwards.

Putting "--ask" in EMERGE_DEFAULT_OPTS might be a handy thing too.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
09:23:04 up 11 days, 16:01, 2 users, load average: 0.13, 0.09, 0.09
Linux 2.6.23.12 x86_64 GNU/Linux Registered Linux user #261729
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 12:20 PM
ray
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

On Tue, 22 Jan 2008 15:29:50 +0000, Gene Poole wrote:

> I've been a Slackware user for years but I've recently made the switch
> to Gentoo on a few boxes to see how it suits my needs. I've got my
> system set up the way I like it with X11, gdm, fluxbox, and all the GUI
> apps my wife needs (firefox, skype, etc). My question now is how to
> keep it all up-to-date. Emerge and portage sound simple enough in
> concept, but it seems like every time I dig into the docs, I discover
> another command or option that I was unaware of. I'd like to script out
> the update process as much as possible, but I'm not sure if I've got all
> my bases covered. Here's what I do now:
>
> emerge --sync
> emerge -Du world
> etc-update [follow the prompts]
>
> I'm sure I'm missing some important steps.


Seems like a golden opportunity to find out what I'm doing wrong - there
are certainly other folks out there who know a lot more about it than I
do, but here's what I do - has kept my system robust for a year or so now:

emerge --sync
emerge --ask --update world
is done every few days - with etc-update when indicated.

emerge --ask --update --deep --newuse world
emerge --depclean
revdep-rebuild
is done every couple of weeks or so.

Please critique and tell me what I'm doing wrong - a 'why' would also be
helpful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 12:20 PM
David Hilton
 
Posts: n/a
Default Re: Keeping gentoo up-to-date -- gentoo noob.

I have attempted to build scripts to increase the automation, but I
have found that there are issues frequently enough that it is easiest
to run the update by hand.

The commands down the LHS are mostly in the order that I follow.

Here are the main commands I use.

I use eix to allow for rapid searching of packages
It will update portage and rebuild its cache if you run
eix-sync
(To search, use eix <regex>)

The main parts of emerge I use follow
emerge -uDNa world // update all software
emerge --depclean // remove old dependencies

(to fix dependencies, main tools include ufed, emerge -1 <package>,
and modifying the /etc/portage/package.* files)

revdep-rebuild is also important - if you get problems with programs
no longer pointing to the correct library, even though it is
installed, this should fix it.

I use cfg-update to manage my conf files. If it is unsure about the
version, it will use xxdiff to allow you to select what you want from
files.
cfg-update -u


to sum it up
eix-sync
emerge -uDNa world
emerge --depclean
revdep-rebuild
cfg-update -u


There are other commands I also use, but they are much less important;

// these clean out unused files, but it isn't wise to use them too
much
eclean-dist --destructive
eclean packages
rm -Rf /var/tmp/portage/*

// these only apply if you are using layman...
layman --sync ALL
update-eix-remote update


I hope that is useful
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145