Open vinyanalista opened 5 years ago
Zip archives can be created with zip
and extracted with unzip
.
To install those programs:
# zypper in zip unzip
Examples:
myfiles.zip
containing two files file1
and file2
:$ zip myfiles.zip file1 file2
mypics.zip
of a directory called pics
in your home directory (/home/username/pics
):$ zip -r mypics.zip /home/username/pics/
file.zip
to the current folder:$ unzip file.zip
file.zip
to a particular destination directory (/dest/directory/
):$ unzip -d /dest/directory/ file.zip
References:
Tarballs (.tar.gz
or .tar.bz2
) can be created and extracted with GNU Tar.
To install tar
:
# zypper in tar tar-lang
Examples:
.tar.gz
archive named myfiles.tar.gz
containing two files file1
and file2
:$ tar -czvf myfiles.tar.gz file1 file2
.tar.gz
archive named mypics.tar.gz
of a directory called pics
in your home directory (/home/username/pics
):$ tar -czvf mypics.tar.gz /home/username/pics/
.tar.gz
archive named archive.tar.gz
:$ tar -tvf archive.tar.gr
.tar.gz
archive named file.tar.gz
to the current folder:$ tar -xzvf file.tar.gz
.tar.gz
archive named file.tar.gz
to a particular destination directory (/dest/directory/
):$ tar -xzvf file.tar.gz -C /dest/directory/
References:
7-Zip archives (.7z
) can be created and extracted with p7zip, the port of the command line version of 7-Zip for POSIX systems, including Linux.
To install p7zip:
# zypper in p7zip
Examples:
myfiles.7z
containing two files file1
and file2
:$ 7z a myfiles.7z file1 file2
mypics.7z
of a directory called pics
in your home directory (/home/username/pics
):$ 7z a mypics.7z /home/username/pics/
file.7z
to the current folder:$ 7z x file.7z
file.7z
to a particular destination directory (/dest/directory/
):$ 7z x -o/dest/directory/ file.7z
Reference:
RAR files can be created with rar
and extracted with unrar
.
The program unrar
can be found in following packages:
unrar_wrapper
(OSS repo) - it's a wrapper Python script that transforms unrar
commands to unar
and lsar
callsunrar
(Non-OSS repo) - the freeware (but not free software, libre software) provided by RARLABThe program rar
can be found in the following package:
rar
(Packman repo) - trial, provided by RARLABExamples:
myfiles.rar
containing two files file1
and file2
:$ rar a myfiles.rar file1 file2
mypics.zip
of a directory called pics
in your home directory (/home/username/pics
):$ cd /home/username/
$ rar a mypics.rar pics/
file.rar
to the current folder:$ unrar x file.rar
file.rar
to a particular destination directory (/dest/directory/
):$ unrar x file.rar /dest/directory/
References:
Linux Kamarada is moving to GitLab. Any updates to this issue are going to be reported on GitLab.
Linux Kamarada needs archiving programs, so that users can manage archive files (for example, ZIP files) from the command line interface and using shell scripts.