1. View the files in the RPM package
[Email protected]_166_132 ~]# RPM-QLP mysql5.6.29-1-3.x86_64.rpm |more
/etc/ld.so.conf.d/mysql-5.6.23_compiled_x86_64.conf
/usr/local/lib/libjemalloc.a
/usr/local/lib/libjemalloc.so
/usr/local/lib/libjemalloc.so.1
/usr/local/lib/libjemalloc_pic.a
2. View installed RPM package files
RPM-QL mysql5.6.29-1-2.x86_64
[[Email protected]_166_132 ~]# rpm-qa |grep MySQL
Mysql5.6.29-1-3.x86_64
Mysql-libs-5.1.73-3.el6_5.x86_64
[Email protected]_166_132 ~]# RPM-QL Mysql5.6.29-1-3.x86_64|more
/etc/ld.so.conf.d/mysql-5.6.23_compiled_x86_64.conf
/usr/local/lib/libjemalloc.a
/usr/local/lib/libjemalloc.so
/usr/local/lib/libjemalloc.so.1
/usr/local/lib/libjemalloc_pic.a
3. Convert RPM to Cpio file
[Email protected]_166_132 ~]# Rpm2cpio mysql5.6.29-1-3.x86_64.rpm >5.6.29.cpio
4, Cpio is used to establish, restore the backup file of the tool program, it can join, unlock cpio or tar files in the backup file.
[Email protected]_166_132 test]# mkdir TEST;CD test;
[Email protected]_166_132 test]# CPIO-IVD < /5.6.29.cpio
./etc/ld.so.conf.d/mysql-5.6.23_compiled_x86_64.conf
./usr/local/lib/libjemalloc.a
./usr/local/lib/libjemalloc.so
./usr/local/lib/libjemalloc.so.1
./usr/local/lib/libjemalloc_pic.a
5. Now it is possible to copy the specified file in the current directory. ^_^
Do not install the RPM package, remove the files in the RPM package