【Linux部署】Linux环境 .rar 格式文件处理工具安装使用(一波两折避坑指北)
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_64
是64 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.总结
首先是寻求小伙伴儿的帮助,然后要去官网,去官网,去官网,如果踩坑再需求小伙伴儿的帮助
【Linux部署】Linux环境 .rar 格式文件处理工具安装使用(一波两折避坑指北)相关推荐
- Linux(Centos7)环境下解压rar格式文件
Centos7环境下解压rar格式文件 1 下载rar软件压缩包 2 解压rar压缩包 3 编译rar 4 安装部分依赖包 5 解压文件.压缩文件 6 rar更多使用方法 1 下载rar软件压缩包 w ...
- linux下怎么解压tar.xz,Linux下解压.tar.xz格式文件的方法
前言 对于xz这个压缩相信很多人陌生,但xz是绝大数linux默认就带的一个压缩工具,xz格式比7z还要小. 今天在下载Node.js源码包的时候遇到的这种压缩格式.查了一下资料,这里进行一下记录,分 ...
- linux系统如何解压rar文件怎么打开,在Linux下如何打开RAR压缩文件
关键词: 在Windows下常见的RAR压缩文件在Linux下目前还没有免费的打开工具. 如果要用,只能用RAR的Linux试用版本. 下载地址是:http://www.rarlab.com/down ...
- linux下使用苹果dmg格式文件 目前状态
linux下使用苹果dmg格式文件 MAC应用属于 FreeBSD (Unix),Unix 是需要付费的,Linux想要免费用暂时就别想了. MAC应用属于 FreeBSD (Unix),Unix 是 ...
- linux deploy下载地址,Linux部署 Linux Deploy
Linux部署 Linux Deploy 大小:10.10M 语言:中文 类型:办公学习 版本:1.0 时间:2020-08-05 12:17:02 介绍 Thisapplicationisopens ...
- Mac 解压rar格式文件(附解压工具包)
Mac 解压rar格式文件* 工具包(zip格式):http://download.csdn.net/detail/u011445031/9854187 将工具包解压到你安装目录即可. 使用: 打开终 ...
- apache 支持下载rar格式文件问题
默认apache 不支持下载rar格式文件 这里涉及到mime 模块问题 需要添加 addtype application/octet-stream rar 这个语句 或者写入mime.types ...
- centos下解压rar格式文件
[root@gaojingbo ~]# wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz [root@gaojingbo ~]# tar ...
- Linux下解压rar格式文件
首先:rar文件与zip tar.gz等等开源压缩文件是不一样的,rar类型的压缩协议是不开源的,所以linux系统自身是没有安装rar的解压工具的,所以我们需要自己下载rar工具,注:由于rar类型 ...
最新文章
- 设备漏电对计算机影响,电脑机箱漏电对电脑有影响吗
- Samsung:Galaxy Fold确认解决屏幕问题
- apache httpclient 工具类_Httpclient实现文件上传、文件下载看这篇文章就够了
- k8s组件说明:ETCD存储组件
- Java黑皮书课后题第4章:*4.3(几何:估算面积)应用4.1节图中以下地点的GPS位置:Georgia州的Atlanta……计算被这四个城市所围起来的区域面积
- ADO的几种数据库连接方式
- 线性链条件随机场与HMM在viterbi算法中的图解对比
- java 的toString()函数
- 《看聊天记录都学不会C语言?太菜了吧》(5)打了一把游戏我学会了一个编程知识?
- 领域应用 | 用知识图谱玩唐诗,“唐诗别苑”附庸端午节的别样风雅!
- php 源文件加密工具PHP Screw
- vue:无法将“vue”识别为脚本_「前端架构」React和Vue -CTO的选择正确框架的指南...
- 限制文本输入框只能输入0-9数字
- 在Vmware中安装archlinux(2008.3core)的流程与心得
- 均匀分布产生高斯分布
- python查单词音标_有没有通过读音或音标就能查出英语单词的办法,比如发音查词软件?...
- 无线安全审计工具 Fern WiFi Cracker
- GNSS入门1-误差
- Magento 数据表结构 EAV模型详解
- VS2015打开编译VS2013工程时提示fatal error C1083: 无法打开包括文件: “afxwin.h”: No such file or directory
热门文章
- Tween 若干年后我尽然还要学数学 曲线到底是什么鬼啊
- WCF添加服务失败。服务元数据可能无法访问。请确保服务正在运行并且正在公开元数据。...
- [转]对数据仓库进行数据建模
- linux看电视系统,教你如何在Linux操作系统下观看电视节目
- 离开当前屏幕的判断方法_Android App内存泄露测试方法总结
- 讨论计算机在学术领域的应用,BGPLUS实地科研 | 卡内基梅隆大学 | 计算机、人工智能:在科学实验领域的应用...
- 网站导航颜色停留_做好这几点是建设营销型网站的关键
- 计算机更改家庭组密码,Win10系统怎么修改家庭组密码 win10修改家庭组密码的方法...
- 求周期方波信号的傅里叶级数_1-1 求周期方波(见图1-4)的傅里叶级数(复指数函数形 ….doc...
- java递增不使用循环_[转]Java 8:不要再用循环了