우분투(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에서 draw.io 설치하는 방법
- 리눅스 deb 파일 설치
- 우분투에 VMware 설치하기
- [Ubuntu] VMware에서 Windows 11 설치
- Vi/Vim에서 1줄 또는 여러줄 삭제 방법
- Vi/Vim에서 라인 번호 표시하기
- 우분투에서 rar 압축, 압축 풀기
- Ubuntu에서 구글 드라이브 사용하기 (로컬 폴더에 마운트)
- [Ubuntu] apt-cache search, 설치 가능한 패키지 검색
- Ubuntu - DNS 캐시 삭제 방법
- Ubuntu에서 사용할 수 있는 Text Editor 소개
- 우분투(리눅스) - RAM(메모리) 크기 확인
- 우분투에서 시간대(Timezone) 변경하기
- 우분투(리눅스)에서 Atom 텍스트 에디터 설치
- 우분투(리눅스)에서 Microsoft Edge 브라우저 설치
- 우분투(리눅스)에서 Slack 설치
- 우분투(리눅스)에서 Visual Studio Code 설치
- Linux - 파일, 디렉토리 삭제 명령어(rm -rf, rmdir)
- Linux - 파일이 수정된 날짜/시간 확인 방법
- Linux - touch로 파일 생성, 파일의 날짜/시간 변경
- Linux - Node.js로 Html 파일을 로컬 서버에서 실행하기