LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 03-11-2005, 09:23 PM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Some questions about updating portage in Gentoo


How do I update Portage in Gentoo?

I just want to know whether I can just do an emerge --update with portage.

Will this break anything? Just a question. I have beautifully set up everything to work in Gentoo and I don't want to disturb it
 
Old 03-11-2005, 11:35 PM   #2
beaucoup
Member
 
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
emerge --sync should do what you want. If you've done any tinkering inside the /usr/portage directory in order to tweak things, it may get clobbered, but most of us havn't had any need to do that.

emerge --update is equivalent to apt-get --upgrade, which will attempt to upgrade every package on your system to the latest version, which probably isn't what you want. (Set aside at least 24 hours before your first --update...it takes a while).

Check the gentoo forums for a better-informed answer

http://forums.gentoo.org
 
Old 03-11-2005, 11:41 PM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Not the whole system. Just portage.
 
Old 03-11-2005, 11:44 PM   #4
beaucoup
Member
 
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
Just the portage system (ie, the 'emerge' tool), not the software tree? That's easy

emerge portage
 
Old 03-12-2005, 12:46 AM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Should it not be emerge --update portage?
 
Old 03-13-2005, 01:26 PM   #6
beaucoup
Member
 
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
No, just "emerge portage". It's implied that you want the latest version. If you're unsure, you can put --ask before it and it will confirm its actions with you before doing anything (this is generally a good idea).

The --update option is really only used when you want to upgrade your entire system all at once.

If you're new to Gentoo and portage, you may want to read its fairly concise and helpful man page, and the introduction in the Gentoo handbook:

http://www.gentoo.org/doc/en/handboo...?part=2&chap=1
 
Old 03-13-2005, 08:32 PM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Before you posted I already did emerge --update portage. So far nothing seems to have broken but after this I get a warning about 8 configuration files not being updated at the end of each emerge after that.

Do you think anything has gone wrong because I used the --update switch? I used the --update switch for updating portage, because the emerge man page mentioned this somewhere.

I haven't noticed any problems so far, but do these warnings mean anything?

I'll try to get you the exact error message later.
 
Old 03-13-2005, 08:54 PM   #8
beaucoup
Member
 
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
From the emerge man page:
Quote:
--update (-u)
Updates packages to the best version available, which may not always be the highest version number due to masking for testing and development. This will also update direct dependencies which may not be what you want. In general, use this option only in combination with the world or system target.
Having done an "emerge --update packagename" already is no big deal; it may have upgraded a few dependencies too.

The messages about configuration files being out of date are pretty routine; Portage is waiting for you to run the "etc-update" command to sync newly downloaded configuration files with already existing ones. It makes you do this yourself so it doesn't accidentally clobber any of your settings.
 
Old 03-13-2005, 10:26 PM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
So should I run etc-update?

I might have changed one or two of the config files (esp. for network, fstab and a few others).

Is it safe to run etc-update?
 
Old 03-14-2005, 07:55 AM   #10
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

you can check if this is necessary running
Code:
ls -lrta /etc/._*
gentoo portage won't overwrite any files in your /etc directory.
will create a the new one with the name
Code:
._blah,blah
that you can move by yourself or through
Code:
etc-update
if you don't need any personal/special configuration you can make it by hand.
this is gentoo, all about choices

regards

slackie1000
 
Old 03-14-2005, 08:10 AM   #11
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Ok, I'll just leave it alone for now as there seems to be no problem (except that warning message given by portage).

In general, I don't see why I should keep changing the config files for every new upgrade since the config settings should remain the same as before.

Have I got it right? Sorry if I ask an obvious question.
 
Old 03-14-2005, 08:15 AM   #12
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

that is the tricky thing. i, personally, run a differ script to see what the new file brings. if it is something that i consider not important i just delete the file. otherwise i overwrite the old one.
the important thing, imho, is give it a look. sometimes directories are changed and other weird things. you have nothing to fear about taking a look. save your old files and check if the new one brings something new.

regards

slackie1000
 
Old 03-14-2005, 08:26 AM   #13
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Ok thanks. I'll see which files were changed by me in the beginning.

In apt-get (dpkg system) in Debian the update script automatically brings up a ncurses dialog window to ask for any configuration changes (if needed).
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wierd message after updating portage.. kurrupt Linux - Software 2 07-20-2005 08:23 AM
Gentoo: Help with portage. Scorlibrian Linux - Distributions 5 07-02-2005 07:52 AM
Portage: Updating individual package and dependencies in Gentoo vharishankar Linux - Distributions 2 03-29-2005 04:26 AM
gentoo portage time112852 Linux - Software 1 01-03-2005 12:15 AM
Gentoo Portage acjt Linux - Distributions 1 04-02-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration