[root@localhost /]# mldir -p /etc/yum.repos.d/back[root@localhost /]# mv /etc/yum.repos.d/* /etc/yum.repos.d/back[root@localhost /]# vim /etc/yum.repos.d/rhel8.repo[CenOS8-Base]name=CenOS8-Base
baseurl=file:///mnt/cdrom/BaseOS
gpgcheck=0enabled=1[CenOS8-AppStream]name=CenOS8-AppStream
baseurl=file:///mnt/cdrom/AppStream
gpgcheck=0enabled=1[root@localhost /]# mount /dev/sr0 /mnt
2)通过yum来安装httpd。
[root@localhost /]# yum install httpd -y
3)使用yum查询ifconfig命令是由那个软件包提供的。
[root@localhost /]# yum whatprovides ifconfig
4)卸载软件包httpd。
[root@localhost /]# yum remove httpd
3、源码管理
下载tree源码包并编译安装。
[root@localhost /]# wget http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz[root@localhost /]# tar zxvf tree-1.7.0.tgz[root@localhost /]# cd tree-1.7.0[root@localhost /]# make && make install
4、进程管理
1)通过ps命令的两种选项形式查看进程信息
[root@localhost /]# ps -ef[root@localhost /]# ps aux
2)通过pgrep和pidof命令查看sshd服务的进程号
[root@localhost /]# pgrep -ef[root@localhost /]# pidof aux