Yum - Info & details (Will try to update)
[root@rhel6 ~]# yum version
Loaded plugins: fastestmirror, refresh-packagekit, security
Installed: 6/x86_64 1113:dcd18119a8b5e5ccbbe42d2162733fe3d5ac6efb
Group-Installed: yum 14:25c895fcb2f0fc1564ef538acbbd7bb96488ef9e
version
======================================================================================================
[root@rhel6 ~]# yum info httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 18 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.1 MB 01:10
Installed Packages
Name : httpd
Arch : x86_64
Version : 2.2.15
Release : 26.el6.centos
Size : 2.9 M
Repo : installed
From repo : anaconda-CentOS-201303020151.x86_64
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
Available Packages
Name : httpd
Arch : x86_64
Version : 2.2.15
Release : 28.el6.centos
Size : 821 k
Repo : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum provides vsftpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
vsftpd-2.2.2-11.el6_4.1.x86_64 : Very Secure Ftp Daemon
Repo : updates
Matched from:
vsftpd-2.2.2-11.el6_3.1.x86_64 : Very Secure Ftp Daemon
Repo : base
Matched from:
vsftpd-2.2.2-11.el6_4.1.x86_64 : Very Secure Ftp Daemon
Repo : installed
Matched from:
Other : Provides-match: vsftpd
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum search nfs
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
========================================================================== N/S Matched: nfs ===========================================================================
nfs-utils.x86_64 : NFS utilities and supporting clients and daemons for the kernel NFS server
nfs-utils-lib-devel.i686 : Development files for the nfs-utils-lib library
nfs-utils-lib-devel.x86_64 : Development files for the nfs-utils-lib library
nfs4-acl-tools.x86_64 : The nfs4 ACL tools
sblim-cmpi-nfsv3.i686 : SBLIM nfsv3 instrumentation
sblim-cmpi-nfsv3.x86_64 : SBLIM nfsv3 instrumentation
sblim-cmpi-nfsv3-test.x86_64 : SBLIM Nfsv3 Instrumentation Testcases
sblim-cmpi-nfsv4.i686 : SBLIM nfsv4 instrumentation
sblim-cmpi-nfsv4.x86_64 : SBLIM nfsv4 instrumentation
sblim-cmpi-nfsv4-test.x86_64 : SBLIM Nfsv4 Instrumentation Testcases
nfs-utils-lib.i686 : Network File System Support Library
nfs-utils-lib.x86_64 : Network File System Support Library
Name and summary matches only, use "search all" for everything.
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum deplist "gcc"
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Finding dependencies:
package: gcc.x86_64 4.4.7-3.el6
dependency: libgomp.so.1()(64bit)
provider: libgomp.x86_64 4.4.7-3.el6
dependency: /sbin/install-info
provider: info.x86_64 4.13a-8.el6
dependency: libgcc >= 4.4.7-3.el6
provider: libgcc.i686 4.4.7-3.el6
provider: libgcc.x86_64 4.4.7-3.el6
dependency: cloog-ppl >= 0.15
provider: cloog-ppl.x86_64 0.15.7-1.2.el6
provider: cloog-ppl.i686 0.15.7-1.2.el6
dependency: glibc-devel >= 2.2.90-12
provider: glibc-devel.x86_64 2.12-1.107.el6
provider: glibc-devel.i686 2.12-1.107.el6
dependency: libc.so.6(GLIBC_2.7)(64bit)
provider: glibc.x86_64 2.12-1.107.el6
dependency: binutils >= 2.19.51.0.14-33
provider: binutils.x86_64 2.20.51.0.2-5.36.el6
dependency: libgomp = 4.4.7-3.el6
provider: libgomp.x86_64 4.4.7-3.el6
provider: libgomp.i686 4.4.7-3.el6
dependency: rtld(GNU_HASH)
provider: glibc.i686 2.12-1.107.el6
provider: glibc.x86_64 2.12-1.107.el6
dependency: cpp = 4.4.7-3.el6
provider: cpp.x86_64 4.4.7-3.el6
dependency: /bin/sh
provider: bash.x86_64 4.1.2-14.el6
dependency: libgcc_s.so.1()(64bit)
provider: libgcc.x86_64 4.4.7-3.el6
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum groupinfo "Virtualization*"
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Group: Virtualization Tools
Description: Tools for offline virtual image management.
Default Packages:
libguestfs
Optional Packages:
libguestfs-java
libguestfs-tools
virt-v2v
Group: Virtualization Platform
Description: Provides an interface for accessing and controlling virtualized guests and containers.
Mandatory Packages:
libvirt
libvirt-client
virt-who
Optional Packages:
fence-virtd-libvirt
fence-virtd-multicast
fence-virtd-serial
libvirt-cim
libvirt-java
libvirt-snmp
perl-Sys-Virt
Group: Virtualization Client
Description: Clients for installing and managing virtualization instances.
Mandatory Packages:
python-virtinst
virt-manager
virt-viewer
Default Packages:
virt-top
Group: Virtualization
Description: Provides an environment for hosting virtualized guests.
Mandatory Packages:
qemu-kvm
Default Packages:
hypervkvpd
Optional Packages:
qemu-guest-agent
qemu-kvm-tools
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum grouplist |more
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Installed Groups:
Additional Development
Base
Console internet tools
Debugging Tools
Desktop
Desktop Debugging and Performance Tools
Desktop Platform
Dial-up Networking Support
Directory Client
E-mail server
FCoE Storage Client
FTP server
Fonts
General Purpose Desktop
Graphical Administration Tools
Hardware monitoring utilities
Input Methods
Internet Applications
Internet Browser
Java Platform
Legacy UNIX compatibility
Legacy X Window System compatibility
NFS file server
Network Infrastructure Server
Network file system client
Networking Tools
Office Suite and Productivity
Performance Tools
Perl Support
Print Server
Printing client
SNMP Support
Server Platform
Storage Availability Tools
Web Server
X Window System
iSCSI Storage Client
Installed Language Groups:
Arabic Support [ar]
--More--
======================================================================================================
[root@rhel6 ~]# yum list installed |more
Loaded plugins: fastestmirror, refresh-packagekit, security
Installed Packages
ConsoleKit.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ConsoleKit-libs.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ConsoleKit-x11.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
DeviceKit-power.x86_64 014-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
GConf2.x86_64 2.28.0-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4
GConf2-gtk.x86_64 2.28.0-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4
MAKEDEV.x86_64 3.24-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ModemManager.x86_64 0.4.0-3.git20100628.el6
@anaconda-CentOS-201303020151.x86_64/6.4
NetworkManager.x86_64 1:0.8.1-43.el6 @anaconda-CentOS-201303020151.x86_64/6.4
NetworkManager-glib.x86_64
1:0.8.1-43.el6 @anaconda-CentOS-201303020151.x86_64/6.4
NetworkManager-gnome.x86_64
1:0.8.1-43.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ORBit2.x86_64 2.14.17-3.2.el6_3
@anaconda-CentOS-201303020151.x86_64/6.4
PackageKit.x86_64 0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-device-rebind.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-glib.x86_64 0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-gstreamer-plugin.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-gtk-module.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-yum.x86_64 0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-yum-plugin.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
SDL.x86_64 1.2.14-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
abrt.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-addon-ccpp.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-addon-kerneloops.x86_64
2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-addon-python.x86_64
2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-cli.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-desktop.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-gui.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
--More--
======================================================================================================
[root@rhel6 ~]# yum groupinfo java
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Group: Java Platform
Description: Java support for the CentOS Linux Server and Desktop Platforms.
Mandatory Packages:
java-1.6.0-openjdk
java-1.7.0-openjdk
Optional Packages:
icedtea-web
[root@rhel6 ~]# yum install java-1.6.0-openjdk
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.el6_3 will be updated
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.61.1.11.11.el6_4 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================
Updating:
java-1.6.0-openjdk x86_64 1:1.6.0.0-1.61.1.11.11.el6_4 updates 25 M
Transaction Summary
=======================================================================================================================================================================
Upgrade 1 Package(s)
Total download size: 25 M
Is this ok [y/N]:
======================================================================================================
yum update or yum update <package-name>
======================================================================================================
yum --exclude=package kernel* update //To exclude kernel from update
======================================================================================================
[root@rhel6 ~]# yum check-update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
autofs.x86_64 1:5.0.5-74.el6_4 updates
bind-libs.x86_64 32:9.8.2-0.17.rc1.el6_4.4 updates
bind-utils.x86_64 32:9.8.2-0.17.rc1.el6_4.4 updates
boost-filesystem.x86_64 1.41.0-17.el6_4 updates
boost-system.x86_64 1.41.0-17.el6_4 updates
coreutils.x86_64 8.4-19.el6_4.2 updates
coreutils-libs.x86_64 8.4-19.el6_4.2 updates
cups.x86_64 1:1.4.2-50.el6_4.4 updates
cups-libs.x86_64 1:1.4.2-50.el6_4.4 updates
curl.x86_64 7.19.7-36.el6_4 updates
dbus-glib.x86_64 0.86-6.el6 updates
firefox.x86_64 17.0.6-1.el6.centos updates
freetype.x86_64 2.3.11-14.el6_3.1 updates
gdb.x86_64 7.2-60.el6_4.1 updates
ghostscript.x86_64 8.70-15.el6_4.1 updates
glx-utils.x86_64 9.0-0.8.el6_4.3 updates
gnome-power-manager.x86_64 2.28.3-7.el6_4 updates
gnutls.x86_64 2.8.5-10.el6_4.2 updates
gzip.x86_64 1.3.12-19.el6_4 updates
httpd.x86_64 2.2.15-28.el6.centos updates
httpd-tools.x86_64 2.2.15-28.el6.centos updates
initscripts.x86_64 9.03.38-1.el6.centos.1 updates
ipa-client.x86_64 3.0.0-26.el6_4.4 updates
ipa-python.x86_64 3.0.0-26.el6_4.4 updates
iputils.x86_64 20071127-17.el6_4 updates
java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.61.1.11.11.el6_4 updates
java-1.7.0-openjdk.x86_64 1:1.7.0.25-2.3.10.3.el6_4 updates
kernel.x86_64 2.6.32-358.11.1.el6 updates
kernel-firmware.noarch 2.6.32-358.11.1.el6 updates
kexec-tools.x86_64 2.0.0-258.el6_4.2 updates
krb5-libs.x86_64 1.10.3-10.el6_4.3 updates
krb5-workstation.x86_64 1.10.3-10.el6_4.3 updates
======================================================================================================
yum remove <package-name> or yum erase <package-name> //Yum Remove
======================================================================================================
[root@rhel6 ~]# yum list *selinux
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Installed Packages
libselinux.x86_64 2.0.94-5.3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
Available Packages
ipa-server-selinux.x86_64 3.0.0-26.el6_4.4 updates
libselinux.i686 2.0.94-5.3.el6_4.1 updates
libselinux.x86_64 2.0.94-5.3.el6_4.1 updates
pki-selinux.noarch 9.0.3-30.el6 base
[root@rhel6 ~]#
======================================================================================================
yum clean all //clean yum cache and downloaded packages
======================================================================================================
[root@rhel6 ~]# yum provides virt-manager
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
virt-manager-0.9.0-18.el6.x86_64 : Virtual Machine Manager
Repo : base
Matched from:
[root@rhel6 ~]#
======================================================================================================
Searching for selinux:-
[root@rhel6 ~]# yum search selinux
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
======================================================================== N/S Matched: selinux =========================================================================
ipa-server-selinux.x86_64 : SELinux rules for ipa-server daemons
libselinux.i686 : SELinux library and simple utilities
libselinux.x86_64 : SELinux library and simple utilities
libselinux-devel.i686 : Header files and libraries used to build SELinux
libselinux-devel.x86_64 : Header files and libraries used to build SELinux
libselinux-python.x86_64 : SELinux python bindings for libselinux
libselinux-ruby.x86_64 : SELinux ruby bindings for libselinux
libselinux-static.x86_64 : Static libraries used to build SELinux
libselinux-utils.x86_64 : SELinux libselinux utilies
pki-selinux.noarch : Certificate System - PKI Selinux Policies
selinux-policy.noarch : SELinux policy configuration
selinux-policy-doc.noarch : SELinux policy documentation
selinux-policy-minimum.noarch : SELinux minimum base policy
selinux-policy-mls.noarch : SELinux mls base policy
selinux-policy-targeted.noarch : SELinux targeted base policy
checkpolicy.x86_64 : SELinux policy compiler
libsemanage.i686 : SELinux binary policy manipulation library
libsemanage.x86_64 : SELinux binary policy manipulation library
libsepol.i686 : SELinux binary policy manipulation library
libsepol.x86_64 : SELinux binary policy manipulation library
mcstrans.x86_64 : SELinux Translation Daemon
policycoreutils.x86_64 : SELinux policy core utilities
policycoreutils-gui.x86_64 : SELinux configuration GUI
policycoreutils-python.x86_64 : SELinux policy core python utilities
policycoreutils-sandbox.x86_64 : SELinux sandbox utilities
setools.x86_64 : Policy analysis tools for SELinux
setools-console.x86_64 : Policy analysis command-line tools for SELinux
setools-devel.i686 : Policy analysis development files for SELinux
setools-devel.x86_64 : Policy analysis development files for SELinux
setools-gui.x86_64 : Policy analysis graphical tools for SELinux
setools-libs.i686 : Policy analysis support libraries for SELinux
setools-libs.x86_64 : Policy analysis support libraries for SELinux
setools-libs-java.i686 : Java bindings for SELinux policy analysis
setools-libs-java.x86_64 : Java bindings for SELinux policy analysis
setools-libs-python.x86_64 : Python bindings for SELinux policy analysis
setools-libs-tcl.x86_64 : Tcl bindings for SELinux policy analysis
setroubleshoot.x86_64 : Helps troubleshoot SELinux problems
setroubleshoot-server.x86_64 : SELinux troubleshoot server
Name and summary matches only, use "search all" for everything.
[root@rhel6 ~]#
============================================================================================================
[root@rhel6 ~]# yum repolist all
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
repo id repo name status
C6.0-base CentOS-6.0 - Base disabled
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled
C6.0-contrib CentOS-6.0 - Contrib disabled
C6.0-extras CentOS-6.0 - Extras disabled
C6.0-updates CentOS-6.0 - Updates disabled
C6.1-base CentOS-6.1 - Base disabled
C6.1-centosplus CentOS-6.1 - CentOSPlus disabled
C6.1-contrib CentOS-6.1 - Contrib disabled
C6.1-extras CentOS-6.1 - Extras disabled
C6.1-updates CentOS-6.1 - Updates disabled
C6.2-base CentOS-6.2 - Base disabled
C6.2-centosplus CentOS-6.2 - CentOSPlus disabled
C6.2-contrib CentOS-6.2 - Contrib disabled
C6.2-extras CentOS-6.2 - Extras disabled
C6.2-updates CentOS-6.2 - Updates disabled
C6.3-base CentOS-6.3 - Base disabled
C6.3-centosplus CentOS-6.3 - CentOSPlus disabled
C6.3-contrib CentOS-6.3 - Contrib disabled
C6.3-extras CentOS-6.3 - Extras disabled
C6.3-updates CentOS-6.3 - Updates disabled
base CentOS-6 - Base enabled: 6,381
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
extras CentOS-6 - Extras enabled: 13
updates CentOS-6 - Updates enabled: 836
repolist: 7,230
============================================================================================================
[root@rhel6 ~]# yum shell
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Yum Shell
> info vsftp
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
> info vsftpd
Installed Packages
Name : vsftpd
Arch : x86_64
Version : 2.2.2
Release : 11.el6_4.1
Size : 331 k
Repo : installed
From repo : updates
Summary : Very Secure Ftp Daemon
URL : http://vsftpd.beasts.org/
License : GPLv2 with exceptions
Description : vsftpd is a Very Secure FTP daemon. It was written completely from
: scratch.
> help
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
load-transaction load a saved transaction from filename
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
update-minimal Works like update, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade Update packages taking obsoletes into account
version Display a version for the machine and/or available repos.
Shell specific arguments:
config - set config options
repository (or repo) - enable/disable/list repositories
transaction (or ts) - list, reset or run the transaction set
run - run the transaction set
exit or quit - exit the shell
>
Loaded plugins: fastestmirror, refresh-packagekit, security
Installed: 6/x86_64 1113:dcd18119a8b5e5ccbbe42d2162733fe3d5ac6efb
Group-Installed: yum 14:25c895fcb2f0fc1564ef538acbbd7bb96488ef9e
version
======================================================================================================
[root@rhel6 ~]# yum info httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 18 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.1 MB 01:10
Installed Packages
Name : httpd
Arch : x86_64
Version : 2.2.15
Release : 26.el6.centos
Size : 2.9 M
Repo : installed
From repo : anaconda-CentOS-201303020151.x86_64
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
Available Packages
Name : httpd
Arch : x86_64
Version : 2.2.15
Release : 28.el6.centos
Size : 821 k
Repo : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum provides vsftpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
vsftpd-2.2.2-11.el6_4.1.x86_64 : Very Secure Ftp Daemon
Repo : updates
Matched from:
vsftpd-2.2.2-11.el6_3.1.x86_64 : Very Secure Ftp Daemon
Repo : base
Matched from:
vsftpd-2.2.2-11.el6_4.1.x86_64 : Very Secure Ftp Daemon
Repo : installed
Matched from:
Other : Provides-match: vsftpd
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum search nfs
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
========================================================================== N/S Matched: nfs ===========================================================================
nfs-utils.x86_64 : NFS utilities and supporting clients and daemons for the kernel NFS server
nfs-utils-lib-devel.i686 : Development files for the nfs-utils-lib library
nfs-utils-lib-devel.x86_64 : Development files for the nfs-utils-lib library
nfs4-acl-tools.x86_64 : The nfs4 ACL tools
sblim-cmpi-nfsv3.i686 : SBLIM nfsv3 instrumentation
sblim-cmpi-nfsv3.x86_64 : SBLIM nfsv3 instrumentation
sblim-cmpi-nfsv3-test.x86_64 : SBLIM Nfsv3 Instrumentation Testcases
sblim-cmpi-nfsv4.i686 : SBLIM nfsv4 instrumentation
sblim-cmpi-nfsv4.x86_64 : SBLIM nfsv4 instrumentation
sblim-cmpi-nfsv4-test.x86_64 : SBLIM Nfsv4 Instrumentation Testcases
nfs-utils-lib.i686 : Network File System Support Library
nfs-utils-lib.x86_64 : Network File System Support Library
Name and summary matches only, use "search all" for everything.
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum deplist "gcc"
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Finding dependencies:
package: gcc.x86_64 4.4.7-3.el6
dependency: libgomp.so.1()(64bit)
provider: libgomp.x86_64 4.4.7-3.el6
dependency: /sbin/install-info
provider: info.x86_64 4.13a-8.el6
dependency: libgcc >= 4.4.7-3.el6
provider: libgcc.i686 4.4.7-3.el6
provider: libgcc.x86_64 4.4.7-3.el6
dependency: cloog-ppl >= 0.15
provider: cloog-ppl.x86_64 0.15.7-1.2.el6
provider: cloog-ppl.i686 0.15.7-1.2.el6
dependency: glibc-devel >= 2.2.90-12
provider: glibc-devel.x86_64 2.12-1.107.el6
provider: glibc-devel.i686 2.12-1.107.el6
dependency: libc.so.6(GLIBC_2.7)(64bit)
provider: glibc.x86_64 2.12-1.107.el6
dependency: binutils >= 2.19.51.0.14-33
provider: binutils.x86_64 2.20.51.0.2-5.36.el6
dependency: libgomp = 4.4.7-3.el6
provider: libgomp.x86_64 4.4.7-3.el6
provider: libgomp.i686 4.4.7-3.el6
dependency: rtld(GNU_HASH)
provider: glibc.i686 2.12-1.107.el6
provider: glibc.x86_64 2.12-1.107.el6
dependency: cpp = 4.4.7-3.el6
provider: cpp.x86_64 4.4.7-3.el6
dependency: /bin/sh
provider: bash.x86_64 4.1.2-14.el6
dependency: libgcc_s.so.1()(64bit)
provider: libgcc.x86_64 4.4.7-3.el6
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum groupinfo "Virtualization*"
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Group: Virtualization Tools
Description: Tools for offline virtual image management.
Default Packages:
libguestfs
Optional Packages:
libguestfs-java
libguestfs-tools
virt-v2v
Group: Virtualization Platform
Description: Provides an interface for accessing and controlling virtualized guests and containers.
Mandatory Packages:
libvirt
libvirt-client
virt-who
Optional Packages:
fence-virtd-libvirt
fence-virtd-multicast
fence-virtd-serial
libvirt-cim
libvirt-java
libvirt-snmp
perl-Sys-Virt
Group: Virtualization Client
Description: Clients for installing and managing virtualization instances.
Mandatory Packages:
python-virtinst
virt-manager
virt-viewer
Default Packages:
virt-top
Group: Virtualization
Description: Provides an environment for hosting virtualized guests.
Mandatory Packages:
qemu-kvm
Default Packages:
hypervkvpd
Optional Packages:
qemu-guest-agent
qemu-kvm-tools
[root@rhel6 ~]#
======================================================================================================
[root@rhel6 ~]# yum grouplist |more
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Installed Groups:
Additional Development
Base
Console internet tools
Debugging Tools
Desktop
Desktop Debugging and Performance Tools
Desktop Platform
Dial-up Networking Support
Directory Client
E-mail server
FCoE Storage Client
FTP server
Fonts
General Purpose Desktop
Graphical Administration Tools
Hardware monitoring utilities
Input Methods
Internet Applications
Internet Browser
Java Platform
Legacy UNIX compatibility
Legacy X Window System compatibility
NFS file server
Network Infrastructure Server
Network file system client
Networking Tools
Office Suite and Productivity
Performance Tools
Perl Support
Print Server
Printing client
SNMP Support
Server Platform
Storage Availability Tools
Web Server
X Window System
iSCSI Storage Client
Installed Language Groups:
Arabic Support [ar]
--More--
======================================================================================================
[root@rhel6 ~]# yum list installed |more
Loaded plugins: fastestmirror, refresh-packagekit, security
Installed Packages
ConsoleKit.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ConsoleKit-libs.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ConsoleKit-x11.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
DeviceKit-power.x86_64 014-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
GConf2.x86_64 2.28.0-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4
GConf2-gtk.x86_64 2.28.0-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4
MAKEDEV.x86_64 3.24-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ModemManager.x86_64 0.4.0-3.git20100628.el6
@anaconda-CentOS-201303020151.x86_64/6.4
NetworkManager.x86_64 1:0.8.1-43.el6 @anaconda-CentOS-201303020151.x86_64/6.4
NetworkManager-glib.x86_64
1:0.8.1-43.el6 @anaconda-CentOS-201303020151.x86_64/6.4
NetworkManager-gnome.x86_64
1:0.8.1-43.el6 @anaconda-CentOS-201303020151.x86_64/6.4
ORBit2.x86_64 2.14.17-3.2.el6_3
@anaconda-CentOS-201303020151.x86_64/6.4
PackageKit.x86_64 0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-device-rebind.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-glib.x86_64 0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-gstreamer-plugin.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-gtk-module.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-yum.x86_64 0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
PackageKit-yum-plugin.x86_64
0.5.8-21.el6 @anaconda-CentOS-201303020151.x86_64/6.4
SDL.x86_64 1.2.14-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
abrt.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-addon-ccpp.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-addon-kerneloops.x86_64
2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-addon-python.x86_64
2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-cli.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-desktop.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
abrt-gui.x86_64 2.0.8-15.el6.centos
@anaconda-CentOS-201303020151.x86_64/6.4
--More--
======================================================================================================
[root@rhel6 ~]# yum groupinfo java
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Group: Java Platform
Description: Java support for the CentOS Linux Server and Desktop Platforms.
Mandatory Packages:
java-1.6.0-openjdk
java-1.7.0-openjdk
Optional Packages:
icedtea-web
[root@rhel6 ~]# yum install java-1.6.0-openjdk
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.el6_3 will be updated
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.61.1.11.11.el6_4 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================
Updating:
java-1.6.0-openjdk x86_64 1:1.6.0.0-1.61.1.11.11.el6_4 updates 25 M
Transaction Summary
=======================================================================================================================================================================
Upgrade 1 Package(s)
Total download size: 25 M
Is this ok [y/N]:
======================================================================================================
yum update or yum update <package-name>
======================================================================================================
yum --exclude=package kernel* update //To exclude kernel from update
======================================================================================================
[root@rhel6 ~]# yum check-update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
autofs.x86_64 1:5.0.5-74.el6_4 updates
bind-libs.x86_64 32:9.8.2-0.17.rc1.el6_4.4 updates
bind-utils.x86_64 32:9.8.2-0.17.rc1.el6_4.4 updates
boost-filesystem.x86_64 1.41.0-17.el6_4 updates
boost-system.x86_64 1.41.0-17.el6_4 updates
coreutils.x86_64 8.4-19.el6_4.2 updates
coreutils-libs.x86_64 8.4-19.el6_4.2 updates
cups.x86_64 1:1.4.2-50.el6_4.4 updates
cups-libs.x86_64 1:1.4.2-50.el6_4.4 updates
curl.x86_64 7.19.7-36.el6_4 updates
dbus-glib.x86_64 0.86-6.el6 updates
firefox.x86_64 17.0.6-1.el6.centos updates
freetype.x86_64 2.3.11-14.el6_3.1 updates
gdb.x86_64 7.2-60.el6_4.1 updates
ghostscript.x86_64 8.70-15.el6_4.1 updates
glx-utils.x86_64 9.0-0.8.el6_4.3 updates
gnome-power-manager.x86_64 2.28.3-7.el6_4 updates
gnutls.x86_64 2.8.5-10.el6_4.2 updates
gzip.x86_64 1.3.12-19.el6_4 updates
httpd.x86_64 2.2.15-28.el6.centos updates
httpd-tools.x86_64 2.2.15-28.el6.centos updates
initscripts.x86_64 9.03.38-1.el6.centos.1 updates
ipa-client.x86_64 3.0.0-26.el6_4.4 updates
ipa-python.x86_64 3.0.0-26.el6_4.4 updates
iputils.x86_64 20071127-17.el6_4 updates
java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.61.1.11.11.el6_4 updates
java-1.7.0-openjdk.x86_64 1:1.7.0.25-2.3.10.3.el6_4 updates
kernel.x86_64 2.6.32-358.11.1.el6 updates
kernel-firmware.noarch 2.6.32-358.11.1.el6 updates
kexec-tools.x86_64 2.0.0-258.el6_4.2 updates
krb5-libs.x86_64 1.10.3-10.el6_4.3 updates
krb5-workstation.x86_64 1.10.3-10.el6_4.3 updates
======================================================================================================
yum remove <package-name> or yum erase <package-name> //Yum Remove
======================================================================================================
[root@rhel6 ~]# yum list *selinux
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Installed Packages
libselinux.x86_64 2.0.94-5.3.el6 @anaconda-CentOS-201303020151.x86_64/6.4
Available Packages
ipa-server-selinux.x86_64 3.0.0-26.el6_4.4 updates
libselinux.i686 2.0.94-5.3.el6_4.1 updates
libselinux.x86_64 2.0.94-5.3.el6_4.1 updates
pki-selinux.noarch 9.0.3-30.el6 base
[root@rhel6 ~]#
======================================================================================================
yum clean all //clean yum cache and downloaded packages
======================================================================================================
[root@rhel6 ~]# yum provides virt-manager
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
virt-manager-0.9.0-18.el6.x86_64 : Virtual Machine Manager
Repo : base
Matched from:
[root@rhel6 ~]#
======================================================================================================
Searching for selinux:-
[root@rhel6 ~]# yum search selinux
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
======================================================================== N/S Matched: selinux =========================================================================
ipa-server-selinux.x86_64 : SELinux rules for ipa-server daemons
libselinux.i686 : SELinux library and simple utilities
libselinux.x86_64 : SELinux library and simple utilities
libselinux-devel.i686 : Header files and libraries used to build SELinux
libselinux-devel.x86_64 : Header files and libraries used to build SELinux
libselinux-python.x86_64 : SELinux python bindings for libselinux
libselinux-ruby.x86_64 : SELinux ruby bindings for libselinux
libselinux-static.x86_64 : Static libraries used to build SELinux
libselinux-utils.x86_64 : SELinux libselinux utilies
pki-selinux.noarch : Certificate System - PKI Selinux Policies
selinux-policy.noarch : SELinux policy configuration
selinux-policy-doc.noarch : SELinux policy documentation
selinux-policy-minimum.noarch : SELinux minimum base policy
selinux-policy-mls.noarch : SELinux mls base policy
selinux-policy-targeted.noarch : SELinux targeted base policy
checkpolicy.x86_64 : SELinux policy compiler
libsemanage.i686 : SELinux binary policy manipulation library
libsemanage.x86_64 : SELinux binary policy manipulation library
libsepol.i686 : SELinux binary policy manipulation library
libsepol.x86_64 : SELinux binary policy manipulation library
mcstrans.x86_64 : SELinux Translation Daemon
policycoreutils.x86_64 : SELinux policy core utilities
policycoreutils-gui.x86_64 : SELinux configuration GUI
policycoreutils-python.x86_64 : SELinux policy core python utilities
policycoreutils-sandbox.x86_64 : SELinux sandbox utilities
setools.x86_64 : Policy analysis tools for SELinux
setools-console.x86_64 : Policy analysis command-line tools for SELinux
setools-devel.i686 : Policy analysis development files for SELinux
setools-devel.x86_64 : Policy analysis development files for SELinux
setools-gui.x86_64 : Policy analysis graphical tools for SELinux
setools-libs.i686 : Policy analysis support libraries for SELinux
setools-libs.x86_64 : Policy analysis support libraries for SELinux
setools-libs-java.i686 : Java bindings for SELinux policy analysis
setools-libs-java.x86_64 : Java bindings for SELinux policy analysis
setools-libs-python.x86_64 : Python bindings for SELinux policy analysis
setools-libs-tcl.x86_64 : Tcl bindings for SELinux policy analysis
setroubleshoot.x86_64 : Helps troubleshoot SELinux problems
setroubleshoot-server.x86_64 : SELinux troubleshoot server
Name and summary matches only, use "search all" for everything.
[root@rhel6 ~]#
============================================================================================================
[root@rhel6 ~]# yum repolist all
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
repo id repo name status
C6.0-base CentOS-6.0 - Base disabled
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled
C6.0-contrib CentOS-6.0 - Contrib disabled
C6.0-extras CentOS-6.0 - Extras disabled
C6.0-updates CentOS-6.0 - Updates disabled
C6.1-base CentOS-6.1 - Base disabled
C6.1-centosplus CentOS-6.1 - CentOSPlus disabled
C6.1-contrib CentOS-6.1 - Contrib disabled
C6.1-extras CentOS-6.1 - Extras disabled
C6.1-updates CentOS-6.1 - Updates disabled
C6.2-base CentOS-6.2 - Base disabled
C6.2-centosplus CentOS-6.2 - CentOSPlus disabled
C6.2-contrib CentOS-6.2 - Contrib disabled
C6.2-extras CentOS-6.2 - Extras disabled
C6.2-updates CentOS-6.2 - Updates disabled
C6.3-base CentOS-6.3 - Base disabled
C6.3-centosplus CentOS-6.3 - CentOSPlus disabled
C6.3-contrib CentOS-6.3 - Contrib disabled
C6.3-extras CentOS-6.3 - Extras disabled
C6.3-updates CentOS-6.3 - Updates disabled
base CentOS-6 - Base enabled: 6,381
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
extras CentOS-6 - Extras enabled: 13
updates CentOS-6 - Updates enabled: 836
repolist: 7,230
============================================================================================================
[root@rhel6 ~]# yum shell
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Yum Shell
> info vsftp
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
> info vsftpd
Installed Packages
Name : vsftpd
Arch : x86_64
Version : 2.2.2
Release : 11.el6_4.1
Size : 331 k
Repo : installed
From repo : updates
Summary : Very Secure Ftp Daemon
URL : http://vsftpd.beasts.org/
License : GPLv2 with exceptions
Description : vsftpd is a Very Secure FTP daemon. It was written completely from
: scratch.
> help
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
load-transaction load a saved transaction from filename
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
update-minimal Works like update, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade Update packages taking obsoletes into account
version Display a version for the machine and/or available repos.
Shell specific arguments:
config - set config options
repository (or repo) - enable/disable/list repositories
transaction (or ts) - list, reset or run the transaction set
run - run the transaction set
exit or quit - exit the shell
>
Comments
Post a Comment