넘버원 리눅스의 패키지 설치 방법 (apt-get 명령 사용법) |
아래 게시물에선 GUI(Graphic User Interface)의 시냅틱 패키지 관리자를 통해서 패키지 설치하는 방법을 알아보았습니다. 이번에는 콘솔 창에서 패키지를 설치하고자 할 때의 apt-get 명령의 사용법을 간단하게 설명합니다. apt-get는 우분투의 명령이나 넘버원리눅스에서 사용할 수 있는 apt-get의 옵션은 한정되어 있습니다.
1. 패키지 설치
apt-get install 패키지명 예) apt-get install twitchbrowser
apt-get install -y 패키지명 # 의존성이 있는 여러개의 패키지가 설치될 때 설치 여부 확인을 묻지 않고 설치되도록 할 때 -y 옵션을 사용
2. 패키지 검색
apt-cache search 패키지명키워드 예) apt-cache search kodi
3. 패키지 제거
apt-get remove 패키지명 예) apt-get remove smplayer
4. 리포지토리 서버(저장소) 업데이트
apt-get update
5. 업데이트 패키지로 업그레이드하기
apt-get -y upgrade
# apt-get 도움말 (apt-get --help)
apt 0.5.15lorg3.95 for linux x86_64 compiled on Apr 27 2016 04:33:03
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.rpm)
remove - Remove packages
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies
Options:
-h This help text.
-q Loggable output - no progress indicator
-qq No output except for errors
-d Download only - do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to continue if the integrity check fails
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-D When removing packages, remove dependencies as possible
-V Show verbose version numbers
-c=? Read this configuration file
-o=? Set an arbitary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
This APT has Super Cow Powers.
*다른 참고 게시물 보기([시스템] 패키지 설치 방법 apt-get 사용법)





