Skip to content

1.8 Archives (Tar Files)

Tomato6966 edited this page Jun 29, 2021 · 1 revision

Create tar named archive.tar containing directory.

tar cf archive.tar directory

Extract the contents from archive.tar.

tar xf archive.tar

Create a gzip compressed tar file name archive.tar.gz.

tar czf archive.tar.gz directory

Extract a gzip compressed tar file.

tar xzf archive.tar.gz

Create a tar file with bzip2 compression

tar cjf archive.tar.bz2 directory

Extract a bzip2 compressed tar file.

tar xjf archive.tar.bz2

INSTALLING PACKAGES

Search for a package by keyword.

yum search keyword

Install package.

yum install package

Display description and summary information about package.

yum info package

Install package from local file named package.rpm

rpm -i package.rpm

Remove/uninstall package.

yum remove package

Install software from source code.

tar zxvf sourcecode.tar.gz
cd sourcecode
./configure
make
make install
Clone this wiki locally