Execute yum commands interactively using Yum Shell
Yum provides the interactive shell to run multiple commands as shown below.
# yum shell
Setting up Yum Shell
> info samba.x86_64
Available Packages
Name : samba
Arch : x86_64
Epoch : 1
Version : 3.5.11
Release : 71.fc15.1
Size : 4.6 M
Repo : updates
Summary : Server and Client software to interoperate with Windows machines
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description :
: Samba is the suite of programs by which a lot of PC-related
: machines share files, printers, and other information (such as
: lists of available files and printers). The Windows NT, OS/2, and
: Linux operating systems support this natively, and add-on packages
: can enable the same thing for DOS, Windows, VMS, UNIX of all
: kinds, MVS, and more. This package provides an SMB/CIFS server
: that can be used to provide network services to SMB/CIFS clients.
: Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT
: need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
>
Yum can also read commands from a text file and execute it one by one. This is very helpful when you have multiple systems. Instead of executing the same command on all the systems, create a text file with those commands, and use ‘yum shell’ to execute those commands as shown below.
# cat yum_cmd.txt
repolist
info nfs-utils-lib.x86_64
# yum shell yum_cmd.txt
repo id repo name status
fedora Fedora 15 - x86_64 24,085
updates Fedora 15 - x86_64 - Updates 5,612
Available Packages
Name : nfs-utils-lib
Arch : x86_64
Version : 1.1.5
Release : 5.fc15
Size : 61 k
Repo : fedora
Summary : Network File System Support Library
URL : http://www.citi.umich.edu/projects/nfsv4/linux/
License : BSD
Description : Support libraries that are needed by the commands and
: daemons the nfs-utils rpm.
Leaving Shell


0 Comments
Post a Comment