linux-RPM package management-yum online management (IP address configuration and network yum source, yum command)

Linux- low-key luxury has connotation

You can use the setup command to configure the IP address (setup is generally only available for Redhat products). After configuration, first start the network card. Secondly, restart the network service and start the network card: Open the / etc / sysconfig / network-scripts / ifcfg-eth0 file, change ONBOOT = "no" to "yes", and restart the network service using the service network restart command to achieve.

Network yum source

    

   

yum command

yum list #Query all available packages list

yum search keyword #Search all packages related to keywords on the server

Installation command: yum -y install package name #install (install) -y (automatically answer yes)

Upgrade command: yum -y update package name #update (upgrade) Note: add the package name, otherwise it is to upgrade all software, including the system. There will be a crash.

Uninstall command: yum -y remove Package name #remove (uninstall) Note: Try not to use this command to uninstall.

YUM software group management commands:

yum grouplist #List all available software group list

yum groupinstall software group name #Install the specified software group, the group name can be queried by grouplist. If there are spaces, use double quotes

yum groupremove software group name # Uninstall the specified software

Published 148 original articles · Like 10 · Visitors 20,000+

Guess you like

Origin blog.csdn.net/ab1605014317/article/details/104873815