Linux and Shell Programming

0 of 30 lessons complete (0%)

Module 4 Software Management

Installing a Package using YUM

yum (Yellowdog Updater, Modified)

yum install <package-name>

Installs a package along with its dependencies.

Example:

sudo yum install package-name

This command installs the package-name package.

yum list installed | grep <package-name>

  • list: Displays a list of installed packages.
  • installed: Shows only the installed packages.
  • grep <package-name>: Filters the list to show only the lines containing package-name.

Example:

yum list installed | grep package-name

This command lists the installed packages and filters for lines containing package-name.

sudo yum remove <package-name>

Removes a package along with its dependencies.

Example:

sudo yum remove package-name

This command removes the package-name package.