zoukankan      html  css  js  c++  java
  • 【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
    
  • 相关阅读:
    2020/12/27
    2020/12/25 the light
    2020/12/25
    2020/12/23
    2020/12/22
    美加大量银行用户遭攻击,这些黑客到底牛到什么程度?
    揭秘马云的蚂蚁科技“整改”计划
    大众集团成功研发:可移动的电动汽车充电器,网友:太方便了
    东方联盟郭盛华的江湖往事
    5种方法!疫情期间防御恶意软件,网络钓鱼和诈骗
  • 原文地址:https://www.cnblogs.com/amadeuslee/p/3772107.html
Copyright © 2011-2022 走看看