우분투(Linux)에서 apt로 설치할 수 있는 패키지를 검색, 자세한 패키지 정보를 확인하는 방법을 소개합니다.
1. apt-cache search : 설치할 수 있는 패키지 검색
아래와 같이 터미널에서 apt-cache search <name>
명령어로 apt에서 설치 가능한 패키지를 검색할 수 있습니다.
$ sudo apt-cache search python3-dev
libpython3-dev - header files and a static library for Python (default)
python3-dev - header files and a static library for Python (default)
games-python3-dev - development of games in Python 3
python3-devpi-common - PyPI server and packaging/testing/release tool - Common modules
검색 결과가 많다면, grep
을 이용하여 원하는 키워드를 다시 검색하여 출력되는 결과를 줄일 수 있습니다.
$ sudo apt-cache search python3-dev | grep devpi
python3-devpi-common - PyPI server and packaging/testing/release tool - Common modules
2. apt-cache show : 패키지의 상세 정보
search 명령어로 검색한 패키지의 자세한 정보를 알고 싶다면, apt-cache show <package name>
으로 상세 정보를 확인할 수 있습니다.
$ sudo apt-cache show python3-dev
Package: python3-dev
Architecture: amd64
Version: 3.8.2-0ubuntu2
Multi-Arch: allowed
Priority: optional
Section: python
Source: python3-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: python3 (= 3.8.2-0ubuntu2), libpython3-dev (= 3.8.2-0ubuntu2), python3.8-dev (>= 3.8.2-1~), python3-distutils (>= 3.8.2-1~)
Replaces: python3.1 (\<\< 3.1.2+20100706-3)
Filename: pool/main/p/python3-defaults/python3-dev_3.8.2-0ubuntu2_amd64.deb
Size: 1212
MD5sum: b9025aa83bc1285ad8fa816b78eee658
SHA1: e252e4e9a4abeee990602979a56dcf6ba72ccdf6
SHA256: 56af22fac450b0dec5b28f3e192724656f5618a38569892d456a70d8050a8f42
Homepage: https://www.python.org/
...
3. apt-get install : 패키지 설치
검색한 패키지를 설치할 때는 apt-get install <packgae name>
명령어로 설치할 수 있습니다.
$ sudo apt-get install python3-dev
Loading script...
Related Posts
- [Ubuntu] apt-cache search, 설치 가능한 패키지 검색
- Ubuntu - DNS 캐시 삭제 방법
- Ubuntu에서 사용할 수 있는 Text Editor 소개
- 우분투(리눅스) - RAM(메모리) 크기 확인
- 우분투에서 시간대(Timezone) 변경하기
- 우분투(리눅스)에서 Atom 텍스트 에디터 설치
- 우분투(리눅스)에서 Microsoft Edge 브라우저 설치
- 우분투(리눅스)에서 Slack 설치
- 우분투(리눅스)에서 Visual Studio Code 설치
- Linux - Node.js로 Html 파일을 로컬 서버에서 실행하기
- 우분투 - Linux 커널 삭제 방법
- Ubuntu에서 Right ALT를 한영키로 변환
- Linux 파일 권한 소개 및 권한 변경
- Linux - Image resize, Format 변경 명령어
- Ubuntu - Gradle 최신 버전 설치 방법
- Ubuntu - Notepad++ 설치 방법
- Ubuntu - Python 3.9 설치 방법
- Ubuntu - Sublime Text 4 설치 방법
- Ubuntu - nodejs LTS, 최신 버전 설치
- Proxy 환경에서 pip 사용 방법
- 최신 코드로 업데이트하는 repo sync 명령어
- Linux - 쉘스크립트 파일에 실행 권한 부여
- Linux - 폴더 전체 복사 (cp -r)
- Linux OS, 배포판 버전 확인
- Linux - Java 프로그램 백그라운드 실행
- Ubuntu에서 imwheel로 마우스 휠 스크롤 속도 변경
- Ubuntu 20.04 - SSH 설치와 접속 방법
- Linux의 apt-get 명령어
- apt remove, purge, autoremove 명령어 차이점
- Ubuntu 20.04 - 토렌트 설치
- Ubuntu 20.04 - OpenJDK 11 설치, 삭제
- Ubuntu 20.04 - VLC Player 설치
- Ubuntu에서 사용할 수 있는 그림판(mspaint)과 비슷한 툴 소개
- Ubuntu - 한글 키보드 설치하는 방법 (uim)
- Ubuntu - kernel 업데이트하는 방법 (manually)
- Linux - Hardware 정보를 보여주는 명령어