Do not install the RPM package, remove the files in the RPM package

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.