Ubuntu support yum

1. Prompt that the yum command is not supported:



Second, the solution: install yum

sudo apt-get install yum


Test whether yum is installed successfully: yum



3. Introduction to yum

yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and RedHat and SUSE. Based on RPM package management, it can automatically download and install RPM packages from a specified server, automatically handle dependencies, and install all dependent software packages at one time, without having to download and install tediously again and again.

yum provides commands to find, install, delete a certain, a group or even all packages, and the commands are concise and easy to remember.

yum [options][command][package...]   
  • options: optional, options include -h (help), -y (select all "yes" when the installation process prompts), -q (do not display the installation process) and so on.
  • command: The operation to be performed.
  • The object of the package operation.

yum common commands

  • 1. List all updatable software inventory command: yum check-update
  • 2. Update all software command: yum update
  • 3. Install only the specified software command: yum install <package_name>
  • 4. Update only the specified software command: yum update <package_name>
  • 5. List all installable software inventory command: yum list
  • 6. Remove the package command: yum remove <package_name>
  • 7. Find the package command: yum search <keyword>
  • 8. Clear cache command:
    • yum clean packages: clear the packages in the cache directory
    • yum clean headers: clear the headers in the cache directory
    • yum clean oldheaders: clear the old headers in the cache directory
    • yum clean, yum clean all (= yum clean packages; yum clean oldheaders) : clear the packages and old headers in the cache directory


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325437898&siteId=291194637
yum