ubuntu中如何解压rar文件

更新时间:2023-07-19 05:26:32 阅读: 评论:0

ubuntu中如何解压rar⽂件1、问题
ubuntu中解压rar⽂件,如下:
root@PC1:/home/test2# ls
test.rar
喜欢你没道理root@PC1:/home/test2# unrar e test.rar
-bash: /usr/bin/unrar: No such file or directory
2、解决⽅法,安装unrar
root@PC1:/home/test2# apt install unrar
Reading Done
Building dependency tree
西红柿鸡蛋饺子Reading Done
The following NEW packages will be installed:
unrar
0 upgraded, 1 newly installed, 0 to remove and 98 not upgraded.
Need to get113 kB of archives.
After this operation, 406 kB of additional disk space will be ud.
Get:1 cn./ubuntu focal/multiver amd64 unrar amd64 1:5.6.6-2build1 [113 kB]
Fetched 113 kB in 5s (20.7 kB/s)
Selecting previously unlected package unrar.
(Reading databa ... 219903 files and directories currently installed.)
Preparing to unpack .../unrar_1%3a5.6.6-2build1_amd64.deb ...
Unpacking unrar (1:5.6.6-2build1) ...
Setting up unrar (1:5.6.6-2build1) ...
update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode
Processing triggers for man-db (2.9.1-1) ...
3、测试结果
root@PC1:/home/test2# ls
test.rar
root@PC1:/home/test2# unrar e test.rar    ## unrar e rar⽂件进⾏解压rar⽂件
UNRAR 5.61 beta 1 freeware      Copyright (c) 1993-2018 Alexander Roshal
Extracting from test.rar
Extracting                                                    OK
All OK
黄洋界
root@PC1:/home/test2# ls  ## 解压成功
test.rar 
4、如何压缩为rar⽂件?
root@PC1:/home/test2# ls
<
root@PC1:/home/test2# rar a file.
-bash: /usr/bin/rar: No such file or directory
root@PC1:/home/test2# ls
端午节为什么吃粽子
<紫砂壶怎么鉴别
微信个性签名怎么设置5、安装rar
root@PC1:/home/test2# apt install rar
Reading Done
Building dependency tree
Reading Done
The following NEW packages will be installed:
rar
0 upgraded, 1 newly installed, 0 to remove and 98 not upgraded.
Need to get295 kB of archives.
After this operation, 799 kB of additional disk space will be ud.
Get:1 cn./ubuntu focal/multiver amd64 rar amd64 2:5.5.0-1build1 [295 kB]
Fetched 295 kB in 6s (46.9 kB/s)
Selecting previously unlected package rar.
(Reading databa ... 219908 files and directories currently installed.)
Preparing to unpack .../rar_2%3a5.5.0-1build1_amd64.deb ... Unpacking rar (2:5.5.0-1build1) ...
Setting up rar (2:5.5.0-1build1) ...
Processing triggers for man-db (2.9.1-1) ...串联电抗器
6、测试
root@PC1:/home/test2# ls
<
root@PC1:/home/test2# rar a file.  ## 压缩为rar⽂件RAR 5.50  Copyright (c) 1993-2017 Alexander Roshal  11 Aug 2017 Trial version            Type 'rar -?'for help
Evaluation copy. Plea register.
Creating archive file.rar
Adding                                                        OK
Done
小米记事本root@PC1:/home/test2# ls    ## 压缩成功
file.rar 

本文发布于:2023-07-19 05:26:32,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1087342.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:设置   解决   鸡蛋
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图