Hello, I am looking for a way to backup the files contained in an RPM installed on my system before I install a new one. I can run "rpm -ql packagename" and see the output, but I can't figure out a command to backup those files only and not the entire directories listed in that output.
Example: # rpm -ql audit /etc/audit.rules /etc/auditd.conf /etc/rc.d/init.d/auditd ... /var/log/audit so, this command lists directories and files, but I just need to copy off files. Something like: "rpm -ql audit |while read line;do cp -p $line /tmp; done", but with a flag like "-type=f". I've looked for flags for cp and tar commands that might grab files only, but I can't find anything like that. Any suggestions? Thanks in advance. -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
