【Vegas原创】Linux下unrar安装与配置

1,先确认服务器linux版本:

[root@IDC-D-831 www]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

 

2,打开unrar下载官网,确认自己需要的版本: http://pkgs.repoforge.org/unrar/ image  

 

3,wget方法下载rpm包

[root@IDC-D-831 www]# wget  http://pkgs.repoforge.org/unrar/unrar-4.1.4-1.el4.rf.i386.rpm
--10:14:30--  http://pkgs.repoforge.org/unrar/unrar-4.1.4-1.el4.rf.i386.rpm
           => `unrar-4.1.4-1.el4.rf.i386.rpm'
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el4/en/i386/rpmforge/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm [following]
--10:14:31--  http://rpmforge.sw.be/redhat/el4/en/i386/rpmforge/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm
           => `unrar-4.1.4-1.el4.rf.i386.rpm'
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el4/en/i386/rpmforge/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm [following]
--10:14:32--  http://tree.repoforge.org/redhat/el4/en/i386/rpmforge/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm
           => `unrar-4.1.4-1.el4.rf.i386.rpm'
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm [following]
--10:14:33--  http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm
           => `unrar-4.1.4-1.el4.rf.i386.rpm'
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114,693 (112K) [application/x-redhat-package-manager]

100%[=================================================================================================================>] 114,693       56.73K/s             

10:14:36 (56.63 KB/s) - `unrar-4.1.4-1.el4.rf.i386.rpm' saved [114693/114693]

  4,rpm安装

[root@IDC-D-831 www]# rpm -Uvh unrar-4.1.4-1.el4.rf.i386.rpm
warning: unrar-4.1.4-1.el4.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:unrar                  ########################################### [100%]

  5,unrar测试

[root@IDC-D-831 www]# unrar

UNRAR 4.10 freeware      Copyright (c) 1993-2012 Alexander Roshal

Usage:     unrar  - -  
               <@listfiles...> <path_to_extract\>


  e             Extract files to current directory
  l[t,b]        List archive [technical, bare]
  p             Print file to stdout
  t             Test archive files
  v[t,b]        Verbosely list archive [technical,bare]
  x             Extract files with full path


  -             Stop switches scanning
  @[+]          Disable [enable] file lists
  ad            Append archive name to destination path
  ag[format]    Generate archive name using the current date
  ai            Ignore file attributes
  ap      Set path inside archive
  c-            Disable comments show
  cfg-          Disable read configuration
  cl            Convert names to lower case
  cu            Convert names to upper case
  dh            Open shared files
  ep            Exclude paths from names
  ep3           Expand paths to full including the drive letter
  f             Freshen files
  id[c,d,p,q]   Disable messages
  ierr          Send all messages to stderr
  inul          Disable all messages
  kb            Keep broken extracted files
  n       Include only specified file
  n@            Read file names to include from stdin
  n@      Include files listed in specified list file
  o[+|-]        Set the overwrite mode
  or            Rename files automatically
  ow            Save or restore file owner and group
  p[password]   Set password
  p-            Do not query password
  r             Recurse subdirectories
  sl      Process files with size less than specified
  sm      Process files with size more than specified
  ta      Process files modified after  in YYYYMMDDHHMMSS format
  tb      Process files modified before  in YYYYMMDDHHMMSS format
  tn      Process files newer than 
  to      Process files older than 
  ts<m,c,a>[N]  Save or restore file time (modification, creation, access)
  u             Update files
  v             List all volumes
  ver[n]        File version control
  vp            Pause before each volume
  x       Exclude specified file
  x@            Read file names to exclude from stdin
  x@      Exclude files listed in specified list file
  y             Assume Yes on all queries
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值