yum
Yum(全称为 Yellow dog Updater, Modified)是一个在CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。
2:命令
yum install + 软件名 安装软件
whereis + 软件名 查看安装软件的位置
yum remove + 软件名 删除软件
yum list 所有可安装的软件包
yum list installed 所有已安装的软件包
yum repolist all 查看系统可用 的yum源和 所有的yum源
yum repolist enabled 查看系统可用 的yum源和 所有的yum源
2: sql
2.1: 带有谓词的字查询
select Sname,Sage ,Ssex from Student where Sage < ANY(select Sage from Student Where Sdept =‘CS’) and Sdept<>’CS’;
表如下:
输入图片说明
2.2: 集合的并集查询 select Sno from Sc where Cno=‘1’ UNION select Sno from Sc where Cno=‘2’;
表如下:
输入图片说明