View previous topic :: View next topic |
Author |
Message |
Crazy_Jerry n00b
Joined: 08 May 2012 Posts: 44
|
Posted: Thu Dec 27, 2012 8:18 am Post subject: Aren't emerge have some command like " yum provides ... |
|
|
For example , I need install command "ssh" , RH yum can do "yum provides */ssh " search the package .
Aren't emerge have some command like that ?
Sometimes " emerge -S ... " or " emerge -s ... " can't found . _________________ God be with us ! |
|
Back to top |
|
|
akaoni n00b
Joined: 18 Dec 2011 Posts: 17
|
Posted: Thu Dec 27, 2012 9:16 am Post subject: |
|
|
You can try equery :
Code: | root@gentoox64 ~ # equery b /usr/bin/equery
* Searching for /usr/bin/equery ...
app-portage/gentoolkit-0.3.0.7 (/usr/bin/equery)
|
you need to install above package to access it. |
|
Back to top |
|
|
kite14 Apprentice
Joined: 07 Nov 2006 Posts: 216 Location: Italy
|
Posted: Thu Dec 27, 2012 12:43 pm Post subject: |
|
|
Crazy_Jerry,
eix is the best tool to perform such a task; it is made to be more efficient and flexible than emerge's search functionality, and is very useful to find all information you need about the packages in the tree. For example, a simple:
would return all the packages (installed and not) containing the ssh string:
Code: | ......
* net-misc/ksshaskpass
Available versions: (4) 0.5.3
{{aqua debug}}
Homepage: http://www.kde-apps.org/content/show.php?content=50971&forumpage=0
Description: KDE implementation of ssh-askpass with Kwallet integration.
[I] net-misc/openssh
Available versions: 5.9_p1-r4 ~6.0_p1 ~6.0_p1-r1 ~6.1_p1 {{X X509 bindist +hpn kerberos ldap libedit pam selinux skey static tcpd}}
Installed versions: 5.9_p1-r4(20:57:46 16/12/2012)(X hpn pam tcpd -X509 -bindist -kerberos -ldap -libedit -selinux -skey -static)
Homepage: http://www.openssh.org/
Description: Port of OpenBSD's free SSH release
* net-misc/openssh-blacklist
Available versions: 0.4.1
Homepage: http://packages.qa.debian.org/o/openssh-blacklist.html
Description: Source files of vuln Debian keys
.....
|
eix is not installed by default, you have to:
Code: | emerge app-portage/eix |
Here → a useful wiki page about eix |
|
Back to top |
|
|
py-ro Veteran
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Thu Dec 27, 2012 2:37 pm Post subject: |
|
|
Boot things does not do what he wanted.
He wants a command telling him in which not installed packet the command is. But this won't work with a sourcebased distro, atleast not good.
AFAIK there is not such a command on gentoo. |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Thu Dec 27, 2012 2:52 pm Post subject: |
|
|
If you want to search for a file in packages which are not installed you can use Portage File List. This data is provided by Gentoo users using the app-portage/pfl package. If you install pfl then you can use the e-file command to search. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
Crazy_Jerry n00b
Joined: 08 May 2012 Posts: 44
|
Posted: Sat Dec 29, 2012 8:18 am Post subject: |
|
|
tomk wrote: | If you want to search for a file in packages which are not installed you can use Portage File List. This data is provided by Gentoo users using the app-portage/pfl package. If you install pfl then you can use the e-file command to search. |
Thanks a lot . _________________ God be with us ! |
|
Back to top |
|
|
|