Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Aren't emerge have some command like " yum provides ... " ?
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
Crazy_Jerry
n00b
n00b


Joined: 08 May 2012
Posts: 44

PostPosted: Thu Dec 27, 2012 8:18 am    Post subject: Aren't emerge have some command like " yum provides ... Reply with quote

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
View user's profile Send private message
akaoni
n00b
n00b


Joined: 18 Dec 2011
Posts: 16

PostPosted: Thu Dec 27, 2012 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message
kite14
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2006
Posts: 140
Location: Pordenone/Italy

PostPosted: Thu Dec 27, 2012 12:43 pm    Post subject: Reply with quote

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:
Code:
eix ssh

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
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1470
Location: St. Wendel

PostPosted: Thu Dec 27, 2012 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Thu Dec 27, 2012 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crazy_Jerry
n00b
n00b


Joined: 08 May 2012
Posts: 44

PostPosted: Sat Dec 29, 2012 8:18 am    Post subject: Reply with quote

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
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