■インストールされているか調査
[root@localhost BACKUP]# rpm -q mysql
mysql-5.0.27-1.fc5
■詳細情報
[root@localhost BACKUP]# rpm -q -i mysql
Name : mysql Relocations: (not relocatable)
Version : 5.0.27 Vendor: Red Hat, Inc.
Release : 1.fc5 Build Date: 2006年11月24日 05時34分01秒
Install Date: 2007年04月15日 00時45分09秒 Build Host: hs20-bc2-4.build.redhat.com
Group : Applications/Databases Source RPM: mysql-5.0.27-1.fc5.src.rpm
Size : 6047337 License: GPL
Signature : DSA/SHA1, 2006年11月28日 00時01分06秒, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.mysql.com
Summary : MySQL のクライアントプログラムと共有ライブラリ。
Description :
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
client/server implementation consisting of a server daemon (mysqld)
and many different client programs and libraries. The base package
contains the MySQL client programs, the client shared libraries, and
generic MySQL files.
[root@localhost BACKUP]#
■インストールパス
[root@localhost BACKUP]# rpm -q -l mysql
/etc/ld.so.conf.d/mysql-i386.conf
/etc/my.cnf
/usr/bin/msql2mysql
/usr/bin/mysql
/usr/bin/mysql_config
/usr/bin/mysql_find_rows
/usr/bin/mysql_tableinfo
/usr/bin/mysql_waitpid
/usr/bin/mysqlaccess
/usr/bin/mysqladmin
/usr/bin/mysqlbinlog
/usr/bin/mysqlcheck
/usr/bin/mysqldump
/usr/bin/mysqlimport
/usr/bin/mysqlshow
/usr/lib/mysql
■依存しているパッケージを表示
[root@localhost BACKUP]# rpm -q -R mysql
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/sbin/install-info
/sbin/ldconfig
/usr/bin/perl
bash
chkconfig
config(mysql) = 5.0.27-1.fc5
fileutils
grep
■インストールパッケージを調査
[root@localhost BACKUP]# rpm -qf /usr/bin/mysql
mysql-5.0.27-1.fc5
■どのようなファイルがインストールされるか事前調査
[root@localhost BACKUP]# rpm -qlp mysql-5.0.45-1.fc6.remi.x86_64.rpm
警告: mysql-5.0.45-1.fc6.remi.x86_64.rpm: ヘッダ V3 DSA signature: NOKEY, key ID 00f97f56
/usr/bin/msql2mysql
/usr/bin/mysql
/usr/bin/mysql_config
/usr/bin/mysql_find_rows
/usr/bin/mysql_tableinfo
/usr/bin/mysql_waitpid
/usr/bin/mysqlaccess
/usr/bin/mysqladmin
/usr/bin/mysqlbinlog
/usr/bin/mysqlcheck
/usr/bin/mysqldump
/usr/bin/mysqlimport
/usr/bin/mysqlshow
/usr/lib64/mysql/mysql_config
/usr/lib64/mysql/mysqlbug
/usr/share/doc/mysql-5.0.45
/usr/share/doc/mysql-5.0.45/COPYING
/usr/share/doc/mysql-5.0.45/EXCEPTIONS-CLIENT
/usr/share/doc/mysql-5.0.45/README
/usr/share/info/mysql.info.gz
/usr/share/man/man1/mysql.1.gz
/usr/share/man/man1/mysql_find_rows.1.gz
/usr/share/man/man1/mysql_tableinfo.1.gz
/usr/share/man/man1/mysql_waitpid.1.gz
/usr/share/man/man1/mysqlaccess.1.gz
/usr/share/man/man1/mysqladmin.1.gz
/usr/share/man/man1/mysqldump.1.gz
/usr/share/man/man1/mysqlshow.1.gz
[root@localhost BACKUP]#
■パッケージの依存関係を調べる
[root@localhost BACKUP]# rpm -qRp mysql-5.0.45-1.fc6.remi.x86_64.rpm
警告: mysql-5.0.45-1.fc6.remi.x86_64.rpm: ヘッダ V3 DSA signature: NOKEY, key ID 00f97f56
/bin/sh
/bin/sh
/bin/sh
/sbin/install-info
/usr/bin/perl
bash
fileutils
grep
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libcrypt.so.1()(64bit)
libcrypto.so.6()(64bit)
libgcc_s.so.1()(64bit)
libm.so.6()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
libmysqlclient.so.15()(64bit)
libmysqlclient.so.15(libmysqlclient_15)(64bit)
libncurses.so.5()(64bit)
libnsl.so.1()(64bit)
libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
libpthread.so.0(GLIBC_2.3.2)(64bit)
libssl.so.6()(64bit)
libstdc++.so.6()(64bit)
libstdc++.so.6(CXXABI_1.3)(64bit)
libz.so.1()(64bit)
mysql-libs = 5.0.45-1.fc6.remi
perl(DBI)
perl(Exporter)
perl(Fcntl)
perl(File::Temp)
perl(Getopt::Long)
perl(IPC::Open3)
perl(Sys::Hostname)
perl(strict)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
[root@localhost BACKUP]#