Linux【工具 01】rarlinux工具下载安装处理.rar格式文件实例

article/2025/9/19 18:19:16

1.说明

要安装一个.rar格式的应用,上传 Linux 系统后发现没有解压工具,上网搜索后开始一波三折的旅程。

2.安装

2.1 跳坑

# 有小伙伴分享安装方法
yum install rar
# 安装后根本无法使用 unrar 命令

2.2 一波三折

WinRAR 官网下载 这里有各种操作系统不同语言的版本,下载注意【坑1️⃣】:

在这里插入图片描述

# 查询系统版本信息是 x86_64 
rpm -qi centos-release
Name        : centos-release
Version     : 7
Release     : 9.2009.1.el7.centos
Architecture: x86_64

查询系统版本信息是x86_6464 bit 的 x86 指令集系统如果点击RAR 6.11 for Linux x86下载到的rarlinux-x32-611.tar安装包是32 bit的,安装后使用报错:

-bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

重新下载64 bit的安装包rarlinux-x64-611.tar

# 解压 安装
tar -zxvf rarlinux-x32-611.tar
cd rar
make
make install

3.使用

【坑2️⃣】安装成功后用了小伙伴举例的解压命令:

# 怎知道这个是 without archived paths
unrar e xxx.rar
# 带路径的用 
unrar x xxx.rar
# 仅贴出两个参数
UNRAR 6.11 freeware      Copyright (c) 1993-2022 Alexander Roshal
Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...><@listfiles...> <path_to_extract\>
<Commands>e             Extract files without archived pathsx             Extract files with full path

4.更多

4.1 压缩命令

RAR 6.11   Copyright (c) 1993-2022 Alexander Roshal   3 Mar 2022
Trial version             Type 'rar -?' for helpUsage:     rar <command> -<switch 1> -<switch N> <archive> <files...><@listfiles...> <path_to_extract\><Commands>a             Add files to archivec             Add archive commentch            Change archive parameterscw            Write archive comment to filed             Delete files from archivee             Extract files without archived pathsf             Freshen files in archivei[par]=<str>  Find string in archivesk             Lock archivel[t[a],b]     List archive contents [technical[all], bare]m[f]          Move to archive [files only]p             Print file to stdoutr             Repair archiverc            Reconstruct missing volumesrn            Rename archived filesrr[N]         Add data recovery recordrv[N]         Create recovery volumess[name|-]     Convert archive to or from SFXt             Test archive filesu             Update files in archivev[t[a],b]     Verbosely list archive contents [technical[all],bare]x             Extract files with full path<Switches>-             Stop switches scanning@[+]          Disable [enable] file listsad[1,2]       Alternate destination pathag[format]    Generate archive name using the current dateai            Ignore file attributesap<path>      Set path inside archiveas            Synchronize archive contentsc-            Disable comments showcfg-          Disable read configurationcl            Convert names to lower casecu            Convert names to upper casedf            Delete files after archivingdh            Open shared filesds            Disable name sort for solid archivedw            Wipe files after archivinge[+]<attr>    Set file exclude and include attributesed            Do not add empty directoriesep            Exclude paths from namesep1           Exclude base directory from namesep3           Expand paths to full including the drive letterep4<path>     Exclude the path prefix from namesf             Freshen fileshp[password]  Encrypt both file data and headersht[b|c]       Select hash type [BLAKE2,CRC32] for file checksumid[c,d,n,p,q] Display or disable messagesierr          Send all messages to stderrilog[name]    Log errors to fileinul          Disable all messagesisnd[-]       Control notification soundsiver          Display the version numberk             Lock archivekb            Keep broken extracted fileslog[f][=name] Write names to log filem<0..5>       Set compression level (0-store...3-default...5-maximal)ma[4|5]       Specify a version of archiving formatmc<par>       Set advanced compression parametersmd<n>[k,m,g]  Dictionary size in KB, MB or GBme[par]       Set encryption parametersms[ext;ext]   Specify file types to storemt<threads>   Set the number of threadsn<file>       Additionally filter included filesn@            Read additional filter masks from stdinn@<list>      Read additional filter masks from list fileo[+|-]        Set the overwrite modeoh            Save hard links as the link instead of the fileoi[0-4][:min] Save identical files as referencesol[a]         Process symbolic links as the link [absolute paths]op<path>      Set the output path for extracted filesor            Rename files automaticallyow            Save or restore file owner and groupp[password]   Set passwordqo[-|+]       Add quick open information [none|force]r             Recurse subdirectoriesr-            Disable recursionr0            Recurse subdirectories for wildcard names onlyrr[N]         Add data recovery recordrv[N]         Create recovery volumess[<N>,v[-],e] Create solid archives-            Disable solid archivingsc<chr>[obj]  Specify the character setsfx[name]     Create SFX archivesi[name]      Read data from standard input (stdin)sl<size>      Process files with size less than specifiedsm<size>      Process files with size more than specifiedt             Test files after archivingta[mcao]<d>   Process files modified after <d> YYYYMMDDHHMMSS datetb[mcao]<d>   Process files modified before <d> YYYYMMDDHHMMSS datetk            Keep original archive timetl            Set archive time to latest filetn[mcao]<t>   Process files newer than <t> timeto[mcao]<t>   Process files older than <t> timets[m,c,a,p]   Save or restore time (modification, creation, access, preserve)u             Update filesv<size>[k,b]  Create volumes with size=<size>*1000 [*1024, *1]ver[n]        File version controlvn            Use the old style volume naming schemevp            Pause before each volumew<path>       Assign work directoryx<file>       Exclude specified filex@            Read file names to exclude from stdinx@<list>      Exclude files listed in specified list filey             Assume Yes on all queriesz[file]       Read archive comment from file

4.2 解压命令

UNRAR 6.11 freeware      Copyright (c) 1993-2022 Alexander RoshalUsage:     unrar <command> -<switch 1> -<switch N> <archive> <files...><@listfiles...> <path_to_extract\><Commands>e             Extract files without archived pathsl[t[a],b]     List archive contents [technical[all], bare]p             Print file to stdoutt             Test archive filesv[t[a],b]     Verbosely list archive contents [technical[all],bare]x             Extract files with full path<Switches>-             Stop switches scanning@[+]          Disable [enable] file listsad[1,2]       Alternate destination pathag[format]    Generate archive name using the current dateai            Ignore file attributesap<path>      Set path inside archivec-            Disable comments showcfg-          Disable read configurationcl            Convert names to lower casecu            Convert names to upper casedh            Open shared filesep            Exclude paths from namesep3           Expand paths to full including the drive letterep4<path>     Exclude the path prefix from namesf             Freshen filesid[c,d,n,p,q] Display or disable messagesierr          Send all messages to stderrinul          Disable all messageskb            Keep broken extracted filesme[par]       Set encryption parametersn<file>       Additionally filter included filesn@            Read additional filter masks from stdinn@<list>      Read additional filter masks from list fileo[+|-]        Set the overwrite modeol[a]         Process symbolic links as the link [absolute paths]op<path>      Set the output path for extracted filesor            Rename files automaticallyow            Save or restore file owner and groupp[password]   Set passwordr             Recurse subdirectoriessc<chr>[obj]  Specify the character setsi[name]      Read data from standard input (stdin)sl<size>      Process files with size less than specifiedsm<size>      Process files with size more than specifiedta[mcao]<d>   Process files modified after <d> YYYYMMDDHHMMSS datetb[mcao]<d>   Process files modified before <d> YYYYMMDDHHMMSS datetn[mcao]<t>   Process files newer than <t> timeto[mcao]<t>   Process files older than <t> timets[m,c,a,p]   Save or restore time (modification, creation, access, preserve)u             Update filesv             List all volumesver[n]        File version controlvp            Pause before each volumex<file>       Exclude specified filex@            Read file names to exclude from stdinx@<list>      Exclude files listed in specified list filey             Assume Yes on all queries

5.总结

首先是寻求小伙伴儿的帮助,然后要去官网,去官网,去官网,如果踩坑再需求小伙伴儿的帮助 😄


http://chatgpt.dhexx.cn/article/3s3mF4n9.shtml

相关文章

linux系统下解压rar文件

1、下载linux版本的rar软件 访问官网 下载最新的、适用于自己的linux版本的rar软件。 可以在服务器终端通过命令getconf LONG_BIT查看自己的linux服务器的字长。我的是64位的&#xff0c;就下载图示箭头所指的版本 下载之后&#xff0c;传到服务器上&#xff0c;最好单独放在一…

Linux安装Rar软件与压缩、解压方法

在Win10上压缩的文件&#xff0c;一般以.rar结尾&#xff0c;这个压缩包如果要在Linux上解压&#xff0c;就需要用到Rar软件&#xff0c;下面介绍在Ubuntu v16.04 上安装Rar软件。 1 设置apt镜像源 设置apt镜像源&#xff0c;请参考这篇文章: https://blog.csdn.net/sanqima/…

Linux安装rar

安装rar 1、直接使用yum安装输入命令 wget --no-check-certificate http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz 如果没有wget命令&#xff0c;需要先装一下 Yum -y install wget –no-check-certificate 这个是无视风险&#xff0c;这个网站好像出了点问题&#xff0c;…

html网页字体出现模糊,浏览器打开网页字体模糊问题的解决方法

前面脚本之家小编介绍了打开网页字体变大了怎么办的相关内容&#xff0c;如果你也遇到这种故障可以去前面找找脚本之家小编写的这篇教程。那么如果不是出现打开网页字体变大而是打开网页字体模糊怎么办&#xff1f;其实造成这种网页字体的故障首先是考虑到用户对浏览器设置错误…

html字体字号颜色怎么设置,HTML 字体颜色怎么设置?

HTML 字体颜色怎么设置? 在网页开发的过程中, 有时为了网页的美观, 需要给网页中的字体设置不同的颜色. 那么怎么设置字体颜色呢? 下面本篇文章就来给大家来介绍设置字体颜色的几种方法, 希望对大家有所帮助. 方法 1: 使用 < font > 标签的 color 属性设置字体颜色 col…

php怎么显示好看的字体颜色,网页中字体颜色设置方法的总结

那么我都知道网页中颜色的运用是网页必不可少的一个元素。使用颜色目的在于有区别、有动感、美观之用&#xff0c;同时颜色也是各种各样网页的样式表现元素之一,别急&#xff01;接下来详细为大家分别介绍通过html、CSS、JS/JQ进行字体颜色设置的方法。 字体颜色设置的相关总结…

css字体设置为白色,css怎么将字体设置成白色

css怎么将字体设置成白色 css将字体设置成白色的方法:可以通过使用color属性来指定字体的颜色,如【color: white】或【color: #fff】。color属性用于指定文本的颜色,颜色值可以是颜色名称或十六进制值。 环境: 本文适用于所有品牌的电脑。 (学习视频分享:css视频教程) 相关…

worder字体网页字体对照表

运营同学一直说设置的字体不对&#xff0c;在word上设置好的格式&#xff0c;复制到网站上之后&#xff0c;字体就变小了。 说这是个程序bug&#xff0c;发现怎么解释都解释不了了。 然后心理就有点不平衡&#xff0c;直接找到了字体对照表 字体对照表&#xff1a;大特号&…

html设置幼圆字体,CSS font-family中文字体设置方法

网站上的字体样式都是通过CSS来控制的&#xff0c;CSS font-family属性可以设置文字字体样式。 常用的网站字体设置代码如下&#xff1a; body{font-family:"Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Helvetica,tahoma,arial,Verd…

html5怎么设置字体位置,css如何设置字体位置

css设置字体位置的方法&#xff1a;1、使用【text-align】属性设置字体的位置&#xff1b;2、使用position属性设置字体位置&#xff1b;3、使用padding、margin属性设置字体位置。 本教程操作环境&#xff1a;windows10系统、css3版&#xff0c;DELL G3电脑&#xff0c;该方法…

php网页代码字体大小,html字体大小怎么设置

设置html字体大小的方法&#xff1a;1、【font-size】后面加px值的方式&#xff1b;2、使用inherit继承父元素的字体大小&#xff1b;3、设置固定的几个值&#xff1b;4、设置smaller和larger&#xff1b;5、设置百分比的形式。 本教程操作环境&#xff1a;windows10系统、html…

怎么调整网页页面大小在HTML中,网页字体大小设置方法 怎么改网页字体大小

经常有电脑爱好者朋友由于不小心误操作导致电脑浏览网页时出现了字体变大或变小等&#xff0c;导致使用不习惯。昨天刚好有电脑百事网网友又问到的网页字体大小设置的问题&#xff0c;所以今天编辑与大家简单介绍下网页字体大小怎么设置。 其实很多朋友出现网页字体变大或变小都…

网页字体设置你了解吗?

转自&#xff1a;http://ued.ctrip.com/blog/?p3589 以前做项目的时候就依葫芦画瓢的设置 { font-family:arial,”microsoft yahei”,simsun,sans-self; } 等类似的字体&#xff0c;然而当更多的设备和系统出现后&#xff0c;以前这样的设置已不能满足网页在各设备上的显示需求…

mac html字体设置,Mac Win 网页字体显示方案

Mac在诞生的时候就把对字体处理尽可能接近原貌成为它很大的一个卖点,而在这些年亲身使用后,个人感觉Mac下的字体确实看起来比Win下舒服些,特别是在浏览网页时,字体比较“珠圆玉润”,可惜的是Mac目前并不是主流,大多数还是Win用户。所以即使你所使用是Mac,在设计仍然要记…

html设置网页的大小怎么设置方法,网页字体大小怎么样去设置

网页字体大小怎么样去设置 网页字体的大小都是可以自己设置的,你知道吗?下面是百分网小编整理的网页字体大小设置方法,希望对你有帮助。 网页字体大小设置小编推荐方法一 近期,经常有电脑爱好者朋友由于不小心误操作导致电脑浏览网页时出现了字体变大或变小等,导致使用不习…

html网站页面上字体改变,如何设置网页字体样式

CSS布局HTML小编今天和大家分享网页的字体样式,这个只要平时最普通,最常用,最实用的网页字体样式font-family:Microsoft YaHei。 网页字体样式华文黑体:STHeiti 网页字体样式华文楷体:STKaiti 网页字体样式华文宋体:STSong 网页字体样式华文仿宋:STFangsong 网页字体样式…

mac 设置网页字体

参考:  如何设置 font-family 比较好以及字体的中英文名 mac下查看字体英文名称的方法: 1、字体册中选中字体 2、如图:

网页字体设置

本人采取的是懒人建站的方案&#xff1a; pc端&#xff1a; font-family: "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", SimSun, Tahoma, Arial, Helvetica, STHeiti; 这些网页字体依次是 “苹果丽黑字体”(这个是苹果系列…

网页字体样式(1)

目录 长度单位 颜色单位 字体样式 字体的分类 长度单位 1:像素 px 像素是屏幕上一个个的小正方形&#xff0c;我们正常看不到的&#xff0c;需要放到最大&#xff0c;才能看到 px是固定的单位&#xff0c;px也是非常常用单位 2:百分比 % 相对于其父元素的宽高比&#xff…

html学习:关于网页字体的设置

转自&#xff1a;微点阅读 https://www.weidianyuedu.com 今天我们来谈谈字体。 ●字体(Font)的设置是网页制作新手遇到的第一个难点。如何控制字体大小&#xff0c;如何取消链接字体的下划线是网友来信问得最多的。好&#xff0c;我们来彻底研究一下字体的各个方面&#xff1a…