在ubuntu16.04下,使用unrar解压缩rar文件

1 使用apt-cache命令查找包

zhai@zhai:~/Downloads$ apt-cache search rar | grep rar
rar - Archiver for .rar files
unrar - Unarchiver for .rar files (non-free version)

2 使用apt-get install安装

zhai@zhai:~/Downloads$ sudo apt-get install rar
[sudo] password for zhai: 
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 0 not upgraded.
Need to get 587 kB of archives.
After this operation, 1,657 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 rar amd64 2:5.3.b2-1 [587 kB]
Fetched 587 kB in 3s (180 kB/s)
Selecting previously unselected package rar.
(Reading database ... 241960 files and directories currently installed.)
Preparing to unpack .../rar_2%3a5.3.b2-1_amd64.deb ...
Unpacking rar (2:5.3.b2-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up rar (2:5.3.b2-1) ...
zhai@zhai:~/Downloads$ which rar
/usr/bin/rar
zhai@zhai:~/Downloads$ which unrar
zhai@zhai:~/Downloads$ sudo apt-get install unrar
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  unrar
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 123 kB of archives.
After this operation, 310 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 unrar amd64 1:5.3.2-1 [123 kB]
Fetched 123 kB in 3s (38.8 kB/s)
Selecting previously unselected package unrar.
(Reading database ... 241974 files and directories currently installed.)
Preparing to unpack .../unrar_1%3a5.3.2-1_amd64.deb ...
Unpacking unrar (1:5.3.2-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up unrar (1:5.3.2-1) ...
update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode
zhai@zhai:~/Downloads$ which unrar
/usr/bin/unrar

3 解压缩

zhai@zhai:~/Downloads$ unrar e google-chrome-stable_current_amd64.rar 

UNRAR 5.30 beta 2 freeware      Copyright (c) 1993-2015 Alexander Roshal


Extracting from google-chrome-stable_current_amd64.rar

Extracting  google-chrome-stable_current_amd64.deb                    OK 

All OK


4 man

NAME
       unrar - extract files from rar archives

SYNOPSIS
       unrar <command> [-<switch 1> -<switch N>] archive [files...] [path...]

DESCRIPTION
       This manual page documents briefly the unrar command.
       This manual page was written for the Debian GNU/Linux distribution because the original program does
       not have a manual page.
       Commands and options described here are as of unrar 2.02.

OPTIONS
       After the program name comes a command and then optional switches with dashes before them.   A  sum‐
       mary of commands is included below.  For a complete description, run unrar without options.

       e      Extract files to current directory.

       l      List archive content.

       p      Print file to stdout.

       t      Test archive files.

       v      Verbosely list archive.

       x      Extract files with full path.


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值