Rocky Linux / DNF 사용법
Rocky Linux
2023-11-19
dnf는 패키지를 관리하는 명령어이다.
- 도움말 보기
# dnf -h
- 패키지 목록 보기
# dnf list
- 그룹 목록 보기
# dnf grouplist Last metadata expiration check: 0:36:47 ago on Sun 19 Nov 2023 07:04:08 AM KST. Available Environment Groups: Server with GUI Server Workstation Custom Operating System Virtualization Host Installed Environment Groups: Minimal Install Available Groups: Legacy UNIX Compatibility Console Internet Tools Container Management Development Tools .NET Development Graphical Administration Tools Headless Management Network Servers RPM Development Tools Scientific Support Security Tools Smart Card Support System Tools
- zip 관련 패키지 검색
# dnf search zip
- zip 패키지 정보 출력
# dnf info zip Last metadata expiration check: 0:40:08 ago on Sun 19 Nov 2023 07:04:08 AM KST. Available Packages Name : zip Version : 3.0 Release : 35.el9 Architecture : x86_64 Size : 263 k Source : zip-3.0-35.el9.src.rpm Repository : baseos Summary : A file compression and packaging utility compatible with PKZIP URL : http://www.info-zip.org/Zip.html License : BSD Description : The zip program is a compression and file packaging utility. Zip is : analogous to a combination of the UNIX tar and compress commands and : is compatible with PKZIP (a compression and file packaging utility for : MS-DOS systems). : : Install the zip package if you need to compress files using the zip : program.
- Server with GUI 그룹 정보 출력
# dnf groupinfo 'Server with GUI' Last metadata expiration check: 0:40:56 ago on Sun 19 Nov 2023 07:04:08 AM KST. Environment Group: Server with GUI Description: An integrated, easy-to-manage server with a graphical interface. Mandatory Groups: Common NetworkManager submodules Container Management Core Fonts GNOME Guest Desktop Agents Hardware Monitoring Utilities Hardware Support Headless Management Internet Browser Multimedia Printing Client Server product core Standard base-x Optional Groups: Basic Web Server DNS Name Server Debugging Tools FTP Server File and Storage Server Guest Agents Infiniband Support Mail Server Network File System Client Network Servers Performance Tools Remote Desktop Clients Remote Management for Linux Virtualization Client Virtualization Hypervisor Virtualization Tools Windows File Server
- zip 패키지 설치
# dnf install zip
- zip 패키지 삭제
# dnf remove zip
- httpd와 php 설치
# dnf install httpd php
- Server with GUI 그룹 설치
# dnf groupinstall 'Server with GUI'
- 필요 없는 패키지들 삭제
# dnf autoremove