Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Just another one-liner command from Portage proficiency view
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
xsi
n00b
n00b


Joined: 23 Dec 2011
Posts: 50
Location: Ukraine, Kiev, russian language

PostPosted: Tue Dec 04, 2012 5:19 pm    Post subject: Just another one-liner command from Portage proficiency view Reply with quote

Firstly I asked on #gentoo IRC:

Quote:
A simple question for you, gentoo pros, not clear for me. While getting rid of unnesessary packages, and after --deplean -ing them, I wanted to know what were those packages. In order to accomplish the task I ran 2 commands:
Code:
equery list -p '>=sys-libs/db-5' (was result)

AND
Code:
emerge -s '>=sys-libs/db-5' (NO RESULT).

Is there the most natural way to get info, because emerge -s sys-libs/db - is not working, and why? In man page there is not enough info about atoms. Those commands, which I provided in comparison, should not differ.


As the answers on IRC were about bothering with log & qlop -u (which is log wrapper and log record have only name and duplicates qlop), I narrow down my question:

Can portageq altogeter with emerge or separately (as basic tools) provide the information like (emerge -s) do? And why emerge -s '>=sys-libs/db-5' has no effect?

Sure, I can `equery meta db`, then go http.. though sometimes a short description is enough -where do Portage keeps it?
_________________
Phenom X2 560
16 GB RAM
USB 3.0 SATA 3.0
SSD Crucial M4 64GB
GeForce 8400 GS
Ensoniq ES1371 audio


Last edited by xsi on Tue Dec 04, 2012 5:55 pm; edited 3 times in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Dec 04, 2012 5:41 pm    Post subject: Reply with quote

emerge -s doesn't expect an atom but a keyword, and then search package that have that keyword.

Else using atom the --search function would be useless, as it will try to answer to a question where the solve is already provide ;)
You can use regexp to also search in category... re-read the man page of emerge for clarification.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Wed Dec 05, 2012 5:12 am    Post subject: Reply with quote

This works:
Code:

emerge -s "@sys-libs/db"


The "@" allows including the category as part of the keyword.

This does not work:
Code:

emerge -s "@sys-libs/db-5"


"db-5" as a USE flag may indicate something to particular
ebuilds, but it is not a package in /usr/portage/sys-libs/,
while "db" is a package in that category.
_________________
TIA
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9501
Location: beyond the rim

PostPosted: Wed Dec 05, 2012 7:28 am    Post subject: Reply with quote

krinn wrote:
emerge -s doesn't expect an atom but a keyword, and then search package that have that keyword.

To be exact, it expects a (kind of) regular expression with some modifications for easier usage.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Dec 05, 2012 8:22 am    Post subject: Reply with quote

I am not sure what exactly you want to accomplish; maybe the information you want to have output is more convenient obtained through app-portage/eix. :wink:
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