빠른 참조

YUM 패키지 관리자 치트시트

Red Hat, CentOS 및 Fedora용 YUM 빠른 참조 가이드: 패키지 조회, 설치, 보안 업데이트, 그룹 설치 및 저장소 관리를 정리합니다.

· 게시일

YUM(Yellowdog Updater, Modified)은 RPM 패키지를 사용하는 Linux 시스템을 위한 오픈소스 명령줄 패키지 관리 도구입니다.

명령어

도움말 및 패키지 목록

yum help                     # Display yum commands and options
yum list available           # List all available packages
yum list installed           # List all installed packages
yum list kernel              # List installed and available kernel packages
yum info vsftpd              # List information about vsftpd package

검색 및 종속성

yum deplist nfs-utils        # List dependencies for nfs-utils
yum provides "*bin/top"      # Show package providing top command
yum search samba             # Find packages matching samba in name or description

업데이트 및 보안

yum updateinfo security      # Get info on available security updates
yum update --security        # Apply security-related package updates

저장소 관리

yum repolist                     # Display enabled software repositories
yum repoinfo rhel-7-server-rpms  # Display info on a specific repository
yum repo-pkgs my-rpms list       # List packages from a specific repo

설치 및 제거

yum install vsftpd           # Install the vsftpd package
yum update                   # Update all installed packages
yum downgrade abc            # Downgrade package abc to an earlier version
yum autoremove httpd         # Remove package httpd and unused dependencies

패키지 그룹

yum groupinstall "Web server"    # Install Web Server group packages

유지보수 및 히스토리

yum history list             # List all yum transactions
yum clean packages           # Delete downloaded packages saved in cache

자주 쓰는 플래그

-y                           # Automatically answer yes to prompts
--disablerepo=epel           # Temporarily disable a specific repository
--downloadonly               # Download package to cache without installing

관련 주제