You are on page 1of 2

RPM:

====
# rpm -ivh MySQL-client-3.23.57-1.i386.rpm : Command to instatll the software.
# rpm -qa : Command to Query all the softwares installed.
cdrecord-2.01-10.7.el5
bluez-libs-3.7-1.1
setarch-2.0-1.1
# rpm -qa | grep 'cdrecord'
# rpm -q MySQL-client
MySQL-client-3.23.57-1
# rpm -q MySQL
package MySQL is not installed
# rpm -qa --queryformat '%{name-%{version}-%{release} %{size}\n'
cdrecord-2.01-10.7 12324
bluez-libs-3.7-1.1 5634
setarch-2.0-1.1 235563
# rpm -qf /usr/bin/mysqlaccess
MySQL-client-3.23.57-1
# rpm -qdf /usr/bin/mysqlaccess : Documentation
# rpm -qi MySQL-client : Lot of information about an installed pacakge.
# rpm -qip MySQL-client-3.23.57-1.i386.rpm : Information about the package befor
e installation.
$ rpm -qlp ovpc-2.1.10.rpm : List all the Files in a Package using rpm -qlp.
# rpm -qsp MySQL-client-3.23.57-1.i386.rpm : State of the files in a package. in
stalled, replaced or normal
# rpm -qRp MySQL-client-3.23.57-1.i386.rpm : List the Dependency Packages using
rpm -qRP
/bin/sh
/usr/bin/perl
# rpm -Vp MySQL-client-3.23.57-1.i386.rpm : Verify a Particular RPM Package usin
g rpm -Vp.
S.5....T c
S.5....T c
S.5....T c
S.5....T c
The character in
S
M
5
D
L

/usr/bin/msql2mysql
/usr/bin/mysql
/usr/bin/mysql_find_rows
/usr/bin/mysqlaccess
the above output denotes the following:

file Size differs


Mode differs (includes permissions and file type)
MD5 sum differs
Device major/minor number mismatch
readlink(2) path mismatch

U User ownership differs


G Group ownership differs
T mTime differs
# rpm -Uvh MySQL-client-3.23.57-1.i386.rpm : Upgrading a RPM Package using rpm Uvh
Preparing...
########################################### [100
%]
1:MySQL-client
###########################################
# rpm -ev MySQL-client : Uninstalling a RPM Package using rpm -e.
# rpm -Va : Verifying all the RPM Packages using rpm -Va
S.5....T c /etc/issue
S.5....T c /etc/issue.net

You might also like