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

曾经终败给现在 2022-09-21 05:58 217阅读 0赞

1 使用apt-cache命令查找包

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

2 使用apt-get install安装

  1. zhai@zhai:~/Downloads$ sudo apt-get install rar
  2. [sudo] password for zhai:
  3. Reading package lists... Done
  4. Building dependency tree
  5. Reading state information... Done
  6. Suggested packages:
  7. unrar
  8. The following NEW packages will be installed:
  9. rar
  10. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  11. Need to get 587 kB of archives.
  12. After this operation, 1,657 kB of additional disk space will be used.
  13. Get:1 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 rar amd64 2:5.3.b2-1 [587 kB]
  14. Fetched 587 kB in 3s (180 kB/s)
  15. Selecting previously unselected package rar.
  16. (Reading database ... 241960 files and directories currently installed.)
  17. Preparing to unpack .../rar_2%3a5.3.b2-1_amd64.deb ...
  18. Unpacking rar (2:5.3.b2-1) ...
  19. Processing triggers for man-db (2.7.5-1) ...
  20. Setting up rar (2:5.3.b2-1) ...
  21. zhai@zhai:~/Downloads$ which rar
  22. /usr/bin/rar
  23. zhai@zhai:~/Downloads$ which unrar
  24. zhai@zhai:~/Downloads$ sudo apt-get install unrar
  25. Reading package lists... Done
  26. Building dependency tree
  27. Reading state information... Done
  28. The following NEW packages will be installed:
  29. unrar
  30. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  31. Need to get 123 kB of archives.
  32. After this operation, 310 kB of additional disk space will be used.
  33. Get:1 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 unrar amd64 1:5.3.2-1 [123 kB]
  34. Fetched 123 kB in 3s (38.8 kB/s)
  35. Selecting previously unselected package unrar.
  36. (Reading database ... 241974 files and directories currently installed.)
  37. Preparing to unpack .../unrar_1%3a5.3.2-1_amd64.deb ...
  38. Unpacking unrar (1:5.3.2-1) ...
  39. Processing triggers for man-db (2.7.5-1) ...
  40. Setting up unrar (1:5.3.2-1) ...
  41. update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode
  42. zhai@zhai:~/Downloads$ which unrar
  43. /usr/bin/unrar

3 解压缩

  1. zhai@zhai:~/Downloads$ unrar e google-chrome-stable_current_amd64.rar
  2. UNRAR 5.30 beta 2 freeware Copyright (c) 1993-2015 Alexander Roshal
  3. Extracting from google-chrome-stable_current_amd64.rar
  4. Extracting google-chrome-stable_current_amd64.deb OK
  5. All OK

4 man

  1. NAME
  2. unrar - extract files from rar archives
  3. SYNOPSIS
  4. unrar <command> [-<switch 1> -<switch N>] archive [files...] [path...]
  5. DESCRIPTION
  6. This manual page documents briefly the unrar command.
  7. This manual page was written for the Debian GNU/Linux distribution because the original program does
  8. not have a manual page.
  9. Commands and options described here are as of unrar 2.02.
  10. OPTIONS
  11. After the program name comes a command and then optional switches with dashes before them. A sum
  12. mary of commands is included below. For a complete description, run unrar without options.
  13. e Extract files to current directory.
  14. l List archive content.
  15. p Print file to stdout.
  16. t Test archive files.
  17. v Verbosely list archive.
  18. x Extract files with full path.

发表评论

表情:
评论列表 (有 0 条评论,217人围观)

还没有评论,来说两句吧...

相关阅读