LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2006, 11:11 PM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Rep: Reputation: 30
emerge sync (update portage)


Very easy question but I cannot find the answer in the docs (perhaps too simple). When I am updating portage the docs say to
Quote:
emerge sync
however I am doing this and receiving a message saying
Quote:
* An update to portage is available. It is _highly_ recommended
* that you update portage now, before any other packages are updated.
* Please do so and then update ALL of your configuration files.
But this is what I thought I was doing.....I can emerge --update world but I assumed that was only updating installed files not portage or system files .
 
Old 03-18-2006, 11:36 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
emerge sync doesn't update any packages on your system... think of it only as updating what's available in the 'catalogue'..

emerge world is the process which does the actual updating.
I suggest you review the gentoo doc's here, expecially the portage section. They are very helpful.

cheers
 
Old 03-18-2006, 11:45 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yes, unfortunately portage is both the name of the package management system on Gentoo (including emerge, among others) and the name of the list of packages available for installation. When you see the "an update to portage is available" message, it is encouraging you to upgrade your package management software, either through 'emerge --oneshot portage' or through 'emerge -uD world'.
 
Old 03-18-2006, 11:46 PM   #4
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
I just re-read your post and I think I may have misunderstood your question

I think you're what is confusing you (and yeah I can see how it can) ...is that while `emerge sync` populates the portage tree (w/ ebuilds) ..`emerge portage` updates the app/structure itself.

cheers
 
Old 03-18-2006, 11:49 PM   #5
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
woops, didn't notice Matir's comments before I re-responded (so - yeah what Matir said )
 
Old 03-19-2006, 01:14 AM   #6
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
yes it was too simple "emerge portage" was the solution, thanks
 
Old 03-19-2006, 01:22 AM   #7
j79zlr
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Gentoo, Slackware, and FreeBSD
Posts: 38

Rep: Reputation: 15
When you do the normal upgrade after syncing your portage tree, it will upgrade portage and restart the emerge. You don't "have" to seperately upgrade portage.
 
Old 03-20-2006, 05:33 PM   #8
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I believe that this is what you are looking for.
Code:
$ emerge --sync
$ emerge --update world
Alternately
Code:
$ emerge --sync
$ emerge --update --deep world
These commands will update the portage tree and update all applications on the system that are managed by portage. This includes security updates, bugfixes, and feature enhancements.

Last edited by stress_junkie; 03-20-2006 at 05:35 PM.
 
Old 03-20-2006, 05:58 PM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
From the message after emerge --sync finished:
Quote:
...that you update portage now, before any other packages are updated. ...
The first thing to do would be:
emerge -a sys-apps/portage
to update portage as suggested.
This will only take seconds...
Only then run any other emerge operation like:
emerge -au world
 
Old 03-20-2006, 06:26 PM   #10
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
I updated portage but cannot complete update world due to one package. I receive a similar error to this .

Quote:
!!! Digest verification Failed:
!!! /usr/portage/distfiles/db-4.2.52.tar.gz
!!! Reason: Failed on MD5 verification
Is there a way around so I can complete
 
Old 03-20-2006, 06:38 PM   #11
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
The digest (integrity-check) failed - might have been a corrupted download.
delete the file db-4.2.52.tar.gz from /usr/portage/distfiles and download it again with:
emerge -af sys-libs/db
(I believe that's what it is you wanted to emerge, but failed...)
and then start the emerge command you were originally running again -
or download it "by hand" and copy it there
 
  


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
Graphical Portage/Emerge GUI (Gentoo) BuckRogers01 Gentoo 37 06-03-2008 08:49 AM
Gentoo emerge howto do ./configure --options-stuff via portage humbletech99 Linux - Distributions 7 05-08-2008 05:06 AM
Mandrake and emerge / portage Zwisel Linux - Distributions 9 12-20-2004 08:44 PM
No emerge, no portage, no nothing... KFM Linux - Distributions 3 10-09-2004 05:45 AM
KDE 3.3: when to expect an ebuild (emerge portage) qwijibow Linux - Distributions 0 08-22-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:36 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