Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to clean package.unmask package.keywords in easy way?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
chilili
n00b
n00b


Joined: 22 Jul 2009
Posts: 12

PostPosted: Wed Jul 22, 2009 2:59 pm    Post subject: How to clean package.unmask package.keywords in easy way? Reply with quote

I have a long list in package.keywords, how to clean it in an easy way?

Thanks.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3200

PostPosted: Wed Jul 22, 2009 3:17 pm    Post subject: Reply with quote

I think the best way is to jump in head first. I would start by saving backups of both those files for reference, then removing all packages from each file. At that point all you should need to do is this:
Code:
emerge -DuN system
emerge -DuN world
revdep-rebuild

The emerge system isn't necessary, but it is a smaller subset of packages that are pretty important, so I would start there.

In reality the process will likely not be very smooth and you will run into blockers, etc. Just follow portage's instructions and resolve issues one at a time. Another tip, is that sometimes when I have a particularly long emerge world to run, I will break things up into stages based on some core packages I have installed, which helps break things into logical steps (e.g. emerge -DupN xorg-server or emerge -DupN mozilla-firefox... you get the idea...).
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1339
Location: /uk/sheffield

PostPosted: Wed Jul 22, 2009 3:18 pm    Post subject: Reply with quote

Well, I wouldn't start from here :wink:

The portage tool app-portage/autounmask is pretty handy.

Copy /etc/portage/package.unmask and /etc/portage/package.keywords to backups....

Code:

cp /etc/portage/package.unmask /etc/portage/.package.unmask
cp /etc/portage/package.keywords /etc/portage/.package.keywords
emerge -av autounmask


Then try updating world and see whats masked or is flagged for downgrade (you can tell this because it will have a [ D]' prior to the package to indicate its going to be downgraded..

Code:

emerge -uDNpv @world @system


Make a note of everything and then unmask each package with autounmask, tedious but it should work and once you start using autounmask it should all be a bit easier to manage in the future.

You might also want to tidy out your /var/lib/portage/world file and can use the app-portage/udept package to do this (although you'll need to autounmask it first).

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Wed Jul 22, 2009 3:30 pm    Post subject: Reply with quote

chilili,

Depending on what you mean by "cleaning", I would recommend eix-test-obsolete from app-portage/eix.
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
forkboy
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 200
Location: Blackpool, UK

PostPosted: Wed Jul 22, 2009 6:57 pm    Post subject: Reply with quote

I use app-portage/portpeek
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2672
Location: here, there or in transit

PostPosted: Wed Jul 22, 2009 10:15 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
See [SOLVED] obsolete entries in package.{keywords,unmask}.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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