【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
posted @ 2012-03-21 02:23  李济宏(Amadeus)  阅读(464)  评论(0编辑  收藏  举报