View the contents of tar and rpm files #tar #rpm

Here are two simple commands to show you the contents of the tar and rpm files.

1. To view the content of a tar file, issue the following command:

#tar -tvf /path/to/file.tar

2. To view the content of an rpm file, use the command given below:

#rpm -qlp /path/to/file.rpm

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.