Search This Blog

2015-01-18

Searching for Packages in Yum

Search for file in repo


yum whatprovides */scp

Will show you which package scp is included in.

Example:

[root@centos ~]# yum whatprovides */scp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.constant.com
* extras: centos.mirror.constant.com
* rpmforge: apt.sw.be
* updates: centos.mirror.constant.com
base/filelists_db | 6.1 MB 00:13
extras/filelists_db | 31 kB 00:00
rpmforge/filelists_db | 2.3 MB 00:06
updates/filelists_db | 1.1 MB 00:01
openssh-clients-5.3p1-104.el6.x86_64 : An open source SSH client applications
Repo : base
Matched from:
Filename : /usr/bin/scp



openssh-clients-5.3p1-104.el6_6.1.x86_64 : An open source SSH client
: applications
Repo : updates
Matched from:
Filename : /usr/bin/scp


Search for files in package


[root@TPC-E9-07-010 ~]# repoquery --list nfs-utils
/etc/nfsmount.conf
/etc/rc.d/init.d/nfs
/etc/rc.d/init.d/nfslock
/etc/rc.d/init.d/rpcgssd
/etc/rc.d/init.d/rpcidmapd
/etc/rc.d/init.d/rpcsvcgssd
/etc/request-key.d/id_resolver.conf
/etc/sysconfig/nfs
/sbin/mount.nfs
/sbin/mount.nfs4
/sbin/nfs_cache_getent
/sbin/rpc.statd
/sbin/umount.nfs
/sbin/umount.nfs4
(SNIPPED)


Extended package info


[root@TPC-E9-07-010 ~]# yum info nfs-utils
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Available Packages
Name : nfs-utils
Arch : x86_64
Epoch : 1
Version : 1.2.3
Release : 54.el6
Size : 326 k
Repo : centos-disc
Summary : NFS utilities and supporting clients and daemons for the kernel NFS server
URL : http://sourceforge.net/projects/nfs
License : MIT and GPLv2 and GPLv2+ and BSD
Description : The nfs-utils package provides a daemon for the kernel NFS server and
: related tools, which provides a much higher level of performance than the
: traditional Linux NFS server used by most users.
:
: This package also contains the showmount program. Showmount queries the
: mount daemon on a remote host for information about the NFS (Network File
: System) server on the remote host. For example, showmount can display the
: clients which are mounted on that host.
:
: This package also contains the mount.nfs and umount.nfs program.


References:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Displaying_Package_Information.html
http://www.thegeekstuff.com/2011/08/yum-command-examples/
http://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/
https://www.centos.org/docs/5/html/yum/sn-searching-packages.html

No comments:

Post a Comment