• Linux RAR 安装和使用


    描述:Linux默认自带ZIP压缩,最大支持4GB压缩,RAR的压缩比大于4GB. 
    流程:下载 》安装 》 使用 
    -------------------------------------------------- 下载 

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    --16:01:50--  http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz
    Resolving www.rarsoft.com... 217.70.129.242
    Connecting to www.rarsoft.com|217.70.129.242|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 833828 (814K) [application/x-gzip]
    Saving to: `rarlinux-3.9.3.tar.gz'
     
    100%[=======================================>] 833,828     34.5K/s   in 29s   
     
    16:02:22 (28.2 KB/s) - `rarlinux-3.9.3.tar.gz' saved [833828/833828]

     

    -------------------------------------------------- 解压 tar.gz 

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    # ls
    rarlinux-3.9.3.tar.gz
    # tar -xzvf rarlinux-3.9.3.tar.gz
    rar/
    rar/readme.txt
    rar/default.sfx
    rar/whatsnew.txt
    rar/license.txt
    rar/order.htm
    rar/rar
    rar/unrar
    rar/rar_static
    rar/technote.txt
    rar/rarfiles.lst
    rar/makefile
    rar/rar.txt

    -------------------------------------------------- 编译文件 

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    # ls
    rar
    rarlinux-3.9.3.tar.gz
    # cd rar
    # make
    mkdir -p /usr/local/bin
    mkdir -p /usr/local/lib
    cp rar unrar /usr/local/bin
    cp rarfiles.lst /etc
    cp default.sfx /usr/local/lib


    -------------------------------------------------- 安装编译文件 

    1
    2
    3
    4
    5
    6
    # make install
    mkdir -p /usr/local/bin
    mkdir -p /usr/local/lib
    cp rar unrar /usr/local/bin
    cp rarfiles.lst /etc
    cp default.sfx /usr/local/lib


    -------------------------------------------------- 执行rar帮助命令 

    1
    2
    # rar --help
    rar: /lib/libc.so.6: version `GLIBC_2.7' not found (required by rar)



    -------------------------------------------------- 添加全局命令 

    1
    2
    # cp -f rar_static /usr/local/bin/rar
    cp: overwrite `/usr/local/bin/rar'? y



    -------------------------------------------------- 即可访问 rar 命令 

    1
    2
    3
    4
    5
    6
    7
    8
    9
    # rar --help
    RAR 3.93   Copyright (c) 1993-2010 Alexander Roshal   15 Mar 2010
    Shareware version         Type RAR -? for help
     
    Usage:     rar <command> -<switch 1> -<switch N> <archive> <files...>
                   <@listfiles...> <path_to_extract>
     
    <Commands>
      x             Extract files with full path


    -------------------------------------------------- 解压所有文件包括路径 

    1
    # rar x filename.rar

     

     

     

     





    学如逆水行舟,不进则退。
  • 相关阅读:
    Neither BindingResult nor plain target object for bean name 'command' available as request attribute
    a href 相对路径 与绝对路径
    sql with as用法详解
    union和union all的区别
    从此不再惧怕URI编码:JavaScript及C# URI编码详解
    Server.UrlEncode、HttpUtility.UrlDecode的区别
    两种获取connectionString的方式
    微软SQLHelper.cs类 中文版
    web.config connectionStrings 数据库连接字符串的解释
    SQL Server 事务处理 回滚事务
  • 原文地址:https://www.cnblogs.com/dhsx/p/4433666.html
Copyright © 2020-2023  润新知