본문 바로가기

리눅스

[draft] apt-get 명령어

apt-get 명령어

apt-get은 Ubuntu와 Debian 기반 시스템에서 사용되는 명령어로 패키지 관리를 위해 사용됩니다.

 

패키지 설치

sudo apt-get install package_name

패키지 업그레이드

sudo apt-get upgrade

시스템 전체 업그레이드

sudo apt-get dist-upgrade

패키지 제거

sudo apt-get remove package_name

패키지 검색

apt-cache search search_term

패키지 정보 확인

apt-cache show package_name

패키지 목록 업데이트

sudo apt-get update

종속성 문제 해결

sudo apt-get install -f

사용하지 않는 패키지 정리

sudo apt-get autoremove

패키지 소스 추가

sudo add-apt-repository repository_url

패키지 소스 업데이트

sudo apt-get update

패키지 소스 제거

sudo add-apt-repository --remove repository_url

 

이 외에도 다양한 apt-get 옵션과 사용법이 있으며 필요에 따라 매뉴얼 페이지를 참조할 수 있습니다.

man apt-get

 

apt-get은 편리한 패키지 관리 도구로, 소프트웨어 설치, 업그레이드, 제거 등을 간편하게 처리할 수 있습니다.