View previous topic :: View next topic |
Author |
Message |
xsi n00b
Joined: 23 Dec 2011 Posts: 50 Location: Ukraine, Kiev, russian language
|
Posted: Tue Dec 04, 2012 5:19 pm Post subject: Just another one-liner command from Portage proficiency view |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Dec 04, 2012 5:41 pm Post subject: |
|
|
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 |
|
|
wcg Guru
Joined: 06 Jan 2009 Posts: 588
|
Posted: Wed Dec 05, 2012 5:12 am Post subject: |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9527 Location: beyond the rim
|
Posted: Wed Dec 05, 2012 7:28 am Post subject: |
|
|
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 |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Dec 05, 2012 8:22 am Post subject: |
|
|
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. |
|
Back to top |
|
|
|