Pacman
pacman 꾸러미 관리자(패키지 매니저)는 아치 리눅스만의 개성있는 주 기능 중 하나입니다. 이진 꾸러미(바이너리 패키지) 형식과 사용하기 쉬운 빌드 시스템으로 이루어져 있습니다. pacman은 아치 공식 저장소나 사용자가 직접 만든 꾸러미 등을 쉽게 관리하도록 해줍니다.
pacman은 꾸러미 목록과 마스터 서버를 동기화해 가장 최신의 시스템을 유지합니다. 게다가 이 서버 및 클라이언트 모델은 간단한 명령으로 사용자에게 꾸러미와 필요한 의존성 꾸러미까지 같이 내려받고 설치도 해줍니다!
pacman은 C로 짜여졌으며 .pkg.tar.xz
형식의 패키지를 씁니다.
Example
# 시스템 갱신. Pacman은 단 하나의 명령으로 모든 꾸러미들의 판올림이 가능하다. (완전 자동)
pacman -Su
# 다음은, 저장소에 대한 동기화와 동시에 시스템에 대한 판올림을 해준다:
pacman -Syu
# 설치 및 삭제. 설치와 삭제에 앞서 로컬 꾸러미 DB와 원격 저장소를 동기화 시킬 필요성이 있다.
pacman -Sy
# 또는
pacman --sync --refresh
# 하나의 꾸러미 또는 그 이상의 리스트 (여기에는 의존성에 의한 딸림-꾸러미 포함) 에 대한 설치 또는 판올림 명령은 다음과 같다.
pacman -S 꾸러미_이름1 꾸러미_이름2
# 다른 저장소에 있는 꾸러미를 원한다면 (예를들어 extra나 testing), 다음 처럼 기술한다.
pacman -S extra/꾸러미_이름
pacman -S testing/꾸러미_이름
# 꾸러미 설치 전 로컬 꾸러미 DB에 대한 새로 고침:
pacman -S 꾸러미_이름
# 찌꺼기를 남기는, 꾸러미 하나에 대한 삭제
pacman -R 꾸러미_이름
# 설치된 다른 꾸러미가 사용하지 않는 의존적인 꾸러미들의 모든 삭제:
pacman -Rs 꾸러미_이름
# 의존성 검사 없이 꾸러미 삭제
pacman -Rd 꾸러미_이름
# 꾸러미 질의. Pacman은 꾸러미 목록에 대한 꾸러미 DB 검색이 가능하며, 꾸러미 이름의 일부분이라도 일치되는 글자열을 가진 모든 꾸러미들을 검색할 수 있다.
pacman -Ss 꾸러미
# 설치된 꾸러미 목록 출력:
pacman -Q
# 설치된 꾸러미 찾기:
pacman -Qs 꾸러미
# 꾸러미 이름을 알고 있다면, 꾸러미에 대한 정보를 찾아 볼 수 있다. 첨언하자면, query info (-Qi) 는 sync info (-Si) 보다 설치된 꾸러미에 한해서 조금 더 많은 정보를 보여주며, 미설치된 꾸러미 정보는 볼 수 없다.
pacman -Si 꾸러미
pacman -Qi 꾸러미
# 꾸러미에 적재된 파일리스트:
pacman -Ql 꾸러미
# 현재 설치된 꾸러미 가운데 사용되지 않는 파일 리스트:
pacman -Qe
# 또, 시스템에 존재하는 꾸러미 파일을 찾을 수 있다.
pacman -Qo /패스/경로/파일
# 설치 없이 꾸러미 내려받기:
pacman -Sw 꾸러미_이름
# 로컬 꾸러미 설치 (저장소 아님):
pacman -U /패스/경로/꾸러미/꾸러미_이름-버젼.pkg.tar.gz
# 꾸러미 캐쉬를 몽땅 버리기 (/var/cache/pacman/pkg):
pacman -Scc
# 저장소에 포함된 패키지 목록 출력.
pacman -Sl 저장소_이름
Official repositories
core
다음을 포함한다:
- booting Arch Linux
- connecting to the Internet
- building packages
- management and repair of supported file systems
- the system setup process (e.g. openssh)
extra
extra contains all packages that do not fit in core. Example: Xorg, window managers, web browsers, media players, tools for working with languages such as Python and Ruby, and a lot more.
community
community contains packages that have been adopted by Trusted Users from the Arch User Repository. Some of these packages may eventually make the transition to the core or extra repositories as the developers consider them crucial to the distribution.
multilib
.../multilib/os/
에서 좋아하는 미러 사이트를 등록할 수 있다.
multilib에는 64비트 설치 (예: wine, steam 등)에서 32 비트 응용 프로그램을 실행하고 빌드하는 데 사용할 수있는 32 비트 소프트웨어 및 라이브러리가 포함되어 있습니다.
multilib 저장소가 활성화되면 32 비트 호환 라이브러리는 /usr/lib32/
아래에 있습니다.
Enabling multilib
To enable multilib repository, uncomment the [multilib]
section in /etc/pacman.conf
Troubleshooting
Fix for key could not be looked up remotely
This is the long video. I do not know the solution and we analyze the problem together with the help of the Arch Wiki.
We have installed ArchMerge 6.2.1 (other ArchMerge and ArchMergeD ssd’s are getting the same error) after asking to update with
Then we get this error about …
First you check the Arch Wiki and read the solution from there.
First thing we try is this
We get an error:
Second thing we try is to update the archlinux-keyring but if you have followed the video than you see that there was no recent update of this package. It is very unlikely that a reinstall will fix our issue.
Third attempt is to reset all pacman keys from this link on Arch Wiki.