![]() ![]() So test.rar file has been created and two files fio and fio.c were added into test.rar. RAR 5.30 beta 2 Copyright (c) 1993-2015 Alexander Roshal Then you can use rar command with a option to create a new rar archive file. 179228 files and directories currently installed.) Selecting previously unselected package rar. Get:1 xenial/multiverse amd64 rar amd64 2:5.3.b2-1 ![]() And the rar command is not installed by default, so you need to installed it firstly via yum or apt-get command.įor CentOS/RHEL, you need to download the latest rar package from rarlab site, as I memtioned above.įor Ubuntu/Debian Linux, you can use the apt-get command to install it, type: $ sudo apt-get install rarĪfter this operation, 1,657 kB of additional disk space will be used. If you want to create a rar archive file under your Linux system, you can use the rar command to achieve it. If you want to check the integrity of a RAR archive file, you can use the unrar commadn with t option, type: $ unrar t test.rar It will display the list of files with their attributes, size, date,etc. If you want to list or check Files in a RAR archive file, you can use unrar command with l option, type: $ unrar l test.rar If you want to extract a RAR archive file into a specific destination directory, such as: /tmp, just type: $ unrar e test.ra /tmp UNRAR 5.30 beta 2 freeware Copyright (c) 1993-2015 Alexander Roshal If you want to extract a RAR file in the current working directory, you just need to use the unrar command with e option, type: If you are using macOS system, and you need to use brew command to install unrar package, type: $ brew install unrar Extract RAR File Using UNRAR ToolĪfter installed unarar tool, you can use unrar command to extract all files from a rar archive file. If you are using FreeBSD Unix system, you need to use the pkg command to install unrar package, type: # pkg install unrar If you are using Fedora Linux, you need to use dnf command to install unrar pcakge, type: $ sudo dnf install unrar ![]() Outputs: rar]# cp -v rar unrar /usr/local/bin/ #4 copy rar and unrar script to /usr/local/bin directory # cp -v rar unrar /usr/local/bin ![]() #3 change the current directory to rar, type: # cd rar #2 unzip rarlinux package, type: # tar -zxvf ~]# tar -zxvf rarlinux-圆4-5.6.1.tar.gz #1 download the latest unrar source package, type: # wget Or you can download the latest unrar source file, just do the following steps: If you are using CentOS/RHEL Linux, you need to use yum command to install unrar package, type: # yum install unrar -y Update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode Processing triggers for man-db (2.7.5-1). 179223 files and directories currently installed.) Selecting previously unselected package unrar. Get:1 xenial/multiverse amd64 unrar amd64 1:5.3.2-1 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 598 not upgraded.Īfter this operation, 310 kB of additional disk space will be used. Sudo: unable to resolve host devops-osetc If you are using Ubuntu or Debian Linux, you can use apt or apt-get command to install unrar package, type: $ sudo apt-get install unrar so you need to install it via yum or apt-get command firstly. and the unrar tool is not installed by default. If you have a rar archive files in your CentOS/Ubuntu Linux system, and you want to extract all files from this rar archive file, you need to use unrar tool to achieve the result. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |