본문 바로가기

목록이 없습니다.

[Ubuntu] unzip 설치

Server/Ubuntu
    반응형

    리눅스 서버(대표적으로 우분투)에서는 알집같은 프로그램이 없습니다. 따라서 압축되어있는 파일을 압축 해제 해주기 위해서는 다른 프로그램들이 필요한데요. 그중 대표적인 프로그램 중 하나가 바로 오늘 소개할 unzip입니다.

     

    우선 오늘 주제인 unzip 설치 과정부터 정리해봅니다.

     

    확인

    $ unzip
    
    Command 'unzip' not found, but can be installed with:
    
    apt install unzip

    unzip이라는 명령어를 입력했을 때 위와같은 메시지가 나온다면 해당 서버에는 unzip이라는 프로그램이 설치되어 있지 않다는 것을 의미합니다. 따라서 메시지에서도 안내해주듯이 apt라는 프로그램을 통해 설치를 해주시면 됩니다.

     

    설치

    $ apt install unzip
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Suggested packages:
      zip
    The following NEW packages will be installed:
      unzip
    0 upgraded, 1 newly installed, 0 to remove and 77 not upgraded.
    Need to get 167 kB of archives.
    After this operation, 558 kB of additional disk space will be used.
    Get:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 unzip amd64 6.0-21ubuntu1 [167 kB]
    Fetched 167 kB in 0s (11.5 MB/s)
    Selecting previously unselected package unzip.
    (Reading database ... 99400 files and directories currently installed.)
    Preparing to unpack .../unzip_6.0-21ubuntu1_amd64.deb ...
    Unpacking unzip (6.0-21ubuntu1) .........................................................] 
    Processing triggers for mime-support (3.60ubuntu1) ......................................] 
    Setting up unzip (6.0-21ubuntu1) ...
    Processing triggers for man-db (2.8.3-2) ...#################################............]

    메시지에서 안내해주었던 명령어를 그대로 입력하면 위와같이 설치가 됩니다. 설치를 완료한 후에는 확인과정에서 입력했던 명령어를 다시 입력해주면 됩니다.

     

    다시 확인

    $ unzip
    UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
    
    Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
    ... (생략)a

    이렇게 우분투 서버에서 unzip 설치 과정을 제타위키를 참고하여 정리해 보았습니다.

     

    반응형