Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get a list of installed masked packages?[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Feb 04, 2010 9:17 pm    Post subject: How to get a list of installed masked packages?[SOLVED] Reply with quote

I decided to do revdep-rebuild. It chugged along for a long time, gave me a very long list of packages to rebuild, but then stopped with the message that one of the packages it wanted to rebuild was masked. I unmerged that package and started again. Same thing with a different package. I was thinking, wouldn't it make my life easier if I could get a list of all the installed packages that are now masked that I can either update or uninstall. But I couldn't figure out how to do it.

It seems that "masked" should be a local option for equery list, but it's not there. So, I thought I could do equery list all files and then just grep for the [M ]. Doesn't work. Redirect output from equery list to a file and then search for the [M ]? Doesn't work. It seems that the screen output for equery and the actual output are different. The actual output consists only of package names.

Anyone have any ideas more clever than mine?[/code]


Last edited by sl70 on Thu Feb 04, 2010 10:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


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

PostPosted: Thu Feb 04, 2010 9:38 pm    Post subject: Reply with quote

Invoke equery with the -N/--no-pipe option so equery does not detect output redirection. Then your script will work.
Code:
andit@rockchuck ~ $ equery l bash
[ Searching for package 'bash' in all categories among: ]
 * installed packages
[I--] [  ] app-shells/bash-4.0_p35 (0)

bandit@rockchuck ~ $ equery l bash | more
 * installed packages
app-shells/bash-4.0_p35

bandit@rockchuck ~ $ equery -N l bash | more
[ Searching for package 'bash' in all categories among: ]
 * installed packages
[I--] [  ] app-shells/bash-4.0_p35 (0)

Or, install app-portage/eix:
Code:
bandit@rockchuck ~ $ eix -c --installed-masked
[D] net-libs/libsoup (2.2.105-r2(2.2)@12/23/2008 2.26.3-r3(2.4)@12/23/2009 -> 2.26.3-r3(2.4)): An HTTP library implementation in C
[D] x11-apps/ttmkfdir (3.0.9-r3@12/22/2008 -> ??): A utility to create a fonts.scale file from a set of TrueType fonts
Found 2 matches.

_________________
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
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Feb 04, 2010 10:00 pm    Post subject: Reply with quote

equery -N !!! Great! Just what I needed.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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