C Shell Wiki
Posts (Latest 10 updated) :
Read all
Contents:
  1. [Linux] C Shell (csh) yum用法: Package management command
    1. Overview
    2. Usage
    3. Common Options
    4. Common Examples
    5. Tips

[Linux] C Shell (csh) yum用法: Package management command

Overview

The yum command is a package management utility for RPM-based Linux distributions. It allows users to install, update, remove, and manage software packages from repositories, making it easier to handle software dependencies and system updates.

Usage

The basic syntax of the yum command is as follows:

yum [options] [arguments]

Common Options

  • install: Installs a specified package.
  • remove: Uninstalls a specified package.
  • update: Updates all packages or a specific package.
  • search: Searches for a package in the repositories.
  • info: Displays detailed information about a specified package.
  • list: Lists all available or installed packages.

Common Examples

Here are several practical examples of using the yum command:

  1. Installing a package:
    yum install httpd
    
  2. Removing a package:
    yum remove httpd
    
  3. Updating all installed packages:
    yum update
    
  4. Searching for a package:
    yum search vim
    
  5. Getting information about a package:
    yum info git
    
  6. Listing all installed packages:
    yum list installed
    

Tips

  • Always run yum update regularly to keep your system up to date with the latest security patches and software improvements.
  • Use the --assumeyes option to automatically answer “yes” to prompts during installations or updates, which can streamline the process.
  • To clean up cached files and free up space, use the command yum clean all periodically.