Find files available inside a rpm, tar and zip package before installation

Find files available inside a rpm, tar and zip package before installation

In this post i am going to explain you about how to find files available inside a rpm, tar and zip package before installation. This is a more often a linux adminĀ  interview question.Their are multiple ways to find files available inside a rpm, tar and zip package I have explained it here.

Find files available inside a rpm, tar and zip before installation

 

To find files available inside a tar ball before installation.

#tar -tvf FileZilla_3.6.0.2_x86_64-linux-gnu.tar.bz2

Another Method to find files available inside a tar ball before installation

To find files available inside a tar ball before installation

#lz FileZilla_3.6.0.2_x86_64-linux-gnu.tar.bz2

Another Method to find files available inside a tar ball before installation

To find files available inside a tar ball before installation.

#less FileZilla_3.6.0.2_x86_64-linux-gnu.tar.bz2

In all the above method’s the files will be displayed in ls -l format.

How to extract one folder from a large tar ball

#tar –extract –file=FileZilla_3.6.0.2_x86_64-linux-gnu.tar.bz2 FileZilla3/

 

Find files available inside a rpm, tar and zip before installation

 

To find files available inside a rpm package before installation

#rpm -qpl google-chrome-stable_current_i386.rpm

Tigger the above command to find out what are the files available inside a rpm before installation.

 

Find files available inside a rpm, tar and zip before installation

 

To find files available inside a zip package before extracting it.

#zipinfo wordpress-3.5.1.zip

Fire the below command to view only the top ten files available in a zip file.

#zipinfo wordpress-3.5.1.zipĀ  | head

 

Find files available inside a rpm, tar and zip before installation




Leave a Reply

Your email address will not be published. Required fields are marked *