0Pricing
Linux Command Line Mastery · 강의

패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`

`yum`, `dnf`, `rpm`을 사용하여 Red Hat 기반 시스템의 소프트웨어 패키지를 관리하는 방법을 이해합니다.

패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`은(는) CoddyKit의 무료 Linux Command Line Mastery 강의입니다. 이것은 4개 중 3번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Linux Command Line Mastery 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Linux Command Line Mastery 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Intro to Package Management

Welcome to package management on CentOS/Fedora! Software on Linux systems is often distributed in 'packages'.

A package manager helps you install, update, configure, and remove software packages, as well as manage their dependencies (other software they rely on).

On Red Hat-based systems like CentOS and Fedora, we primarily use three tools: rpm, yum, and dnf.

RPM: The Foundation

At its core, all Red Hat-based systems use the Red Hat Package Manager (RPM). Think of rpm as the low-level tool.

It directly handles .rpm files, which contain compiled software and metadata. However, rpm doesn't automatically resolve dependencies.

  • Install: rpm -i package.rpm
  • Query: rpm -q package_name
  • Remove: rpm -e package_name

Querying Packages with RPM

Let's see how to query information about an installed package using rpm. The -q flag is for querying.

rpm -q bash checks if the 'bash' shell is installed. rpm -qi bash gives more detailed information.

rpm -q bash
rpm -qi bash

YUM: Solving Dependencies

Manually managing dependencies with rpm can be tedious. This is where YUM (Yellowdog Updater, Modified) came in.

yum is a higher-level tool built on top of rpm. It automatically searches repositories, resolves dependencies, and installs all necessary packages.

For many years, yum was the standard package manager for CentOS and older Fedora versions.

Installing Software with YUM

Using yum is much simpler for everyday tasks. To install a package, you just need its name.

Let's try installing a simple text editor like nano. You'll often need sudo for installation commands.

sudo yum install nano

Updating & Removing with YUM

yum makes it easy to keep your system updated and manage installed software.

  • Update all: sudo yum update
  • Update specific: sudo yum update package_name
  • Remove: sudo yum remove package_name
  • Search: yum search keyword

These commands handle all dependencies for you!

DNF: The Modern Standard

DNF (Dandified YUM) is the next-generation package manager, now standard in modern Fedora and CentOS Stream/8+.

It's an improved version of yum, offering better performance, more robust dependency resolution, and a cleaner codebase.

The good news? Most yum commands work almost identically with dnf!

DNF Basic Operations

Let's see dnf in action. Its syntax is very similar to yum.

We can use dnf to list available or installed packages, or to install new ones. Try listing all installed packages that include 'nano' in their name.

sudo dnf install nano
dnf list installed | grep nano

Managing Software Groups with DNF

One powerful feature of dnf (and yum) is the ability to manage software groups. These are collections of related packages for common tasks.

For example, you can install a 'Development Tools' group which includes compilers, debuggers, and other utilities.

dnf group list

Package Manager Quiz

Test your knowledge on CentOS/Fedora package managers!

Recap: CentOS/Fedora PM

You've explored the essential package managers for CentOS/Fedora:

  • rpm: The low-level foundation, handles individual .rpm files.
  • yum: The classic high-level manager, resolves dependencies automatically.
  • dnf: The modern, faster, and more robust successor to yum.

Mastering these tools is key to managing software effectively on Red Hat-based Linux systems. Keep practicing!

자주 묻는 질문

“패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`” 강의는 무료인가요?

네 — “패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Linux Command Line Mastery 강의 전체를 잠금 해제할 수 있습니다. Linux Command Line Mastery 강의에는 총 4개의 강의가 포함되어 있습니다.

“패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`”에서 뭘 배우나요?

`yum`, `dnf`, `rpm`을 사용하여 Red Hat 기반 시스템의 소프트웨어 패키지를 관리하는 방법을 이해합니다. 브라우저에서 직접 실행하는 실습 코드로 Linux Command Line Mastery을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Linux Command Line Mastery을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Linux Command Line Mastery은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 3번째 강의입니다.

“패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Linux Command Line Mastery 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Linux Command Line Mastery 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 보관 및 압축: `tar`, `gzip`, `bzip2`
  2. 패키지 관리(Debian/Ubuntu): `apt`, `dpkg`
  3. 패키지 관리(CentOS/Fedora): `yum`, `dnf`, `rpm`
  4. 소스에서 빌드하기: configure, make, make install
← Linux Command Line Mastery(으)로 돌아가기