Linux using Yum management software

Time:2021-7-13

Yum is based on RPM package management software. It can automatically download and install RPM package from the specified server. It can automatically handle the dependency relationship and install all the dependent software at one time. There is no need to download and install one by one.

Yum provides commands to find, install and delete software.

#List all the software that can be installed. The @ symbol indicates that it has been installed
yum list|grep samba

#Find software
yum search samba

#Install software, automatically confirm
yum install samba -y

#Query whether the package is installed
rpm -q samba

#Find installed packages
yum list installed|grep samba
#Remove package
yum reomve samba
#Upgrade package
yum update samba

Recommended Today

Build HTTP service with C + + Mongoose

Mongoose source code address:https://github.com/cesanta/mo… Mongoose user manual:https://www.cesanta.com/devel… Mngoose set up HTTP service #include <string> #include “mongoose.h” using namespace std; static const char *s_http_port = “8000”; static void ev_handler(mg_connection *nc, int ev, void *ev_data) { struct http_message *hm = (struct http_message *) ev_data; if (ev == MG_EV_HTTP_REQUEST) { std::string uri; if (hm->uri.p && hm->uri.p[0] == ‘/’) […]