LINUX: How to Pull/Extract Installed RPM Package File From Linux Host OS?
We can gather all files part of installed package on Linux using below command.
rpm -ql <package name> | xargs tar -zcvf /tmp/package.tgz
For e.g. if we want to gather all the files installed as part of httpd package, we use below command.
rpm -ql httpd | xargs tar -zcvf /tmp/httpd.tgz
No comments:
Post a Comment