Extract Packages from RPM: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[User_Tips_%26_Tricks#Extract_Packages_from_RPM|Back]]<br> | |||
'''Perhaps you don't want to install the whole qmail rpm''' | '''Perhaps you don't want to install the whole qmail rpm''' | ||
# wget http://repo.qmailtoaster.com/8/spl/sqlmd/mariadb/testing/x86_64/qmail-1.03-3.3.7.qt.md.el8.x86_64.rpm | # wget http://repo.qmailtoaster.com/8/spl/sqlmd/mariadb/testing/x86_64/qmail-1.03-3.3.7.qt.md.el8.x86_64.rpm |
Latest revision as of 07:56, 25 April 2024
Perhaps you don't want to install the whole qmail rpm # wget http://repo.qmailtoaster.com/8/spl/sqlmd/mariadb/testing/x86_64/qmail-1.03-3.3.7.qt.md.el8.x86_64.rpm List all packages in .rpm file # rpm -lqp qmail-1.03-3.3.7.qt.md.el8.x86_64.rpm # rpm -lqp qmail-1.03-3.3.7.qt.md.el8.x86_64.rpm |grep qmail-s /var/qmail/bin/qmail-send /var/qmail/bin/qmail-showctl /var/qmail/bin/qmail-smtpd /var/qmail/bin/qmail-start /var/qmail/man/cat5/qmail-spamt.0.bz2 /var/qmail/man/cat5/qmail-spamthrottle.0.bz2 /var/qmail/man/cat8/qmail-send.0.bz2 /var/qmail/man/cat8/qmail-showctl.0.bz2 /var/qmail/man/cat8/qmail-smtpd.0.bz2 /var/qmail/man/cat8/qmail-start.0.bz2 /var/qmail/man/man5/qmail-spamt.5.bz2 /var/qmail/man/man5/qmail-spamthrottle.5.bz2 /var/qmail/man/man8/qmail-send.8.bz2 /var/qmail/man/man8/qmail-showctl.8.bz2 /var/qmail/man/man8/qmail-smtpd.8.bz2 /var/qmail/man/man8/qmail-start.8.bz2 # rpm2cpio qmail-1.03-3.3.7.qt.md.el8.x86_64.rpm | cpio -iv --to-stdout ./var/qmail/bin/qmail-smtpd > /tmp/qmail-smtpd # qmailctl stop # cp -b /tmp/qmail-smtpd /var/qmail/bin cp: overwrite '/var/qmail/bin/qmail-smtpd'? y # chmod +x /var/qmail/bin/qmail-smtpd # chown root:qmail /var/qmail/bin/qmail-smtpd # ls -l /var/qmail/bin/qmail-smtpd* -rwxr-xr-x 1 root qmail 219576 Apr 15 16:31 /var/qmail/bin/qmail-smtpd -rwxr-xr-x 1 root qmail 219616 Apr 15 12:11 /var/qmail/bin/qmail-smtpd~ (old)