How to install RAR on Ubuntu 17.04
To install RAR on Ubuntu 17.04
RAR files are compressed files created by the WinRAR archive. RAR files can be split into multi-volume archives when dealing with large file sets. Like Zip files, these files need to be extracted. In this tutorial, the method to install RAR on Ubuntu is covered.
Installing RAR on Ubuntu 17.04
Installing RAR on your Ubuntu machine may require prior addition of its repo files, so run the following command to add it.
root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa This repository contains collection of customized, updated, ported and backported packages for two last LTS releases and latest pre-LTS release. Packages for older releases relocated to ppa:eugenesan/archive or deleted. +-------------------------------------------------------------------------------------+ | Disclaimer: +-------------------------------------------------------------------------------------+ * Packages in this a nd related PPAs are for personal use only. They developed specifically for several custom environments and may not work for you. * Usage of packages in this PPA, in some forms, might contradict licenses of software packaged in this and related PPAs. End users and administrator are responsible for runtime licensing and possible legal consequences. * Some packages provided with their dependencies while some might require additional Ubuntu repositories and external PPAs. Below is the list of . . . Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg' created gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created gpg: key E61380B28313A596: public key " Launchpad synergy+" imported gpg: Total number processed: 1 gpg: imported: 1 OK
Once it is done, update the newly added repo as follows.
root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done
You can now install RAR, use the following command for kick-starting the installation process.
root@linuxhelp1:~# apt-get install rar -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
unrar
The following NEW packages will be installed:
rar
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 590 kB of archives.
After this operation, 1,667 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/multiverse amd64 rar amd64 2:5.4.0-1 [590 kB]
Fetched 590 kB in 4s (146 kB/s)
Selecting previously unselected package rar.
(Reading database ... 202951 files and directories currently installed.)
Preparing to unpack .../rar_2%3a5.4.0-1_amd64.deb ...
Unpacking rar (2:5.4.0-1) ...
Setting up rar (2:5.4.0-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
RAR has been installed, you can use the following command to know all the options available with RAR.
root@linuxhelp1:~# rar
RAR 5.40 Copyright (c) 1993-2016 Alexander Roshal 15 Aug 2016
Trial version Type RAR -? for help
Usage: rar < command> -< switch 1> -< switch N> < archive> < files...>
< @listfiles...> < path_to_extract>
< Commands>
a Add files to archive
c Add archive comment
ch Change archive parameters
cw Write archive comment to file
d Delete files from archive
e Extract files without archived paths
f Freshen files in archive
i[par]=< str> Find string in archives
k Lock archive
l[t[a],b] List archive contents [technical[all], bare]
m[f] Move to archive [files only]
p Print file to stdout
r Repair archive
rc Reconstruct missing volumes
rn Rename archived files
rr[N] Add data recovery record
rv[N] Create recovery volumes
s[name|-] Convert archive to or from SFX
t Test archive files
u Update files in archive
v[t[a],b] Verbosely list archive contents [technical[all],bare]
x Extract files with full path
< Switches>
- Stop switches scanning
@[+] Disable [enable] file lists
ad Append archive name to destination path
ag[format] Generate archive name using the current date
ai Ignore file attributes
ap< path> Set path inside archive
as Synchronize archive contents
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
df Delete files after archiving
dh Open shared files
ds Disable name sort for solid archive
dw Wipe files after archiving
e[+]< attr> Set file exclude and include attributes
ed Do not add empty directories
en Do not put ' end of archive' block
ep Exclude paths from names
ep1 Exclude base directory from names
ep3 Expand paths to full including the drive letter
f Freshen files
hp[password] Encrypt both file data and headers
ht[b|c] Select hash type [BLAKE2,CRC32] for file checksum
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
ilog[name] Log errors to file (registered versions only)
inul Disable all messages
isnd Enable sound
.
.
.
tn< time> Process files newer than < time>
to< time> Process files older than < time>
ts< m,c,a> [N] Save or restore file time (modification, creation, access)
u Update files
v< size> [k,b] Create volumes with size=< size> *1000 [*1024, *1]
ver[n] File version control
vn Use the old style volume naming scheme
vp Pause before each volume
w< path> Assign work directory
x< file> Exclude specified file
x@ Read file names to exclude from stdin
x@< list> Exclude files listed in specified list file
y Assume Yes on all queries
z[file] Read archive comment from file
It was a simple installation procedure, wasn' t it? Enjoy extracting your files through RAR.
Comments ( 1 )