View previous topic :: View next topic |
Author |
Message |
chilili n00b
Joined: 22 Jul 2009 Posts: 12
|
Posted: Wed Jul 22, 2009 2:59 pm Post subject: How to clean package.unmask package.keywords in easy way? |
|
|
I have a long list in package.keywords, how to clean it in an easy way?
Thanks. |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Wed Jul 22, 2009 3:17 pm Post subject: |
|
|
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 |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Wed Jul 22, 2009 3:18 pm Post subject: |
|
|
Well, I wouldn't start from here
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 |
|
|
Gef Apprentice
Joined: 17 May 2008 Posts: 180 Location: France
|
Posted: Wed Jul 22, 2009 3:30 pm Post subject: |
|
|
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 |
|
|
forkboy Apprentice
Joined: 24 Nov 2004 Posts: 200 Location: Blackpool, UK
|
Posted: Wed Jul 22, 2009 6:57 pm Post subject: |
|
|
I use app-portage/portpeek |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
|
Back to top |
|
|
|