1.Linux中软件包的类型
1)DEB #UBlinux DEBlinux 2)RPM #redhat centOS fadora 3)bz2|gz|xz #①需要源码安装需要编译 #②绿色软件,直接可用 #ntfs-3g_ntfsprogs-2017.3.23.tgz 需要编译 "configure" #Firefox-latest-x86_64.tar.bz2 绿色
"注意在rhel8中只能使用绿色软件,源码编译软件和rpm软件"
2:软件包的名称结构
[dhcp-server]-[4.3.6-30].[el8].[x86_64].[rpm] 1 2 3 4 5 1.软件名称 2.软件版本 3.软件的授权协议版本 4.软件架构 5.软件类型后缀
3.rpm命令管理软件包
rpm -ivh ##安装参数组合 -i install -v verbose -h hash
4:本地软件仓库的搭建
系统软件仓库的作用:在系统中对软件进行管理 #rpm命令是不能解决依赖关系的 ,如果需要软件在安装过程中自动解决依赖关系 ,需要大家系统软件仓库
安装成功后 设置httpd开机启动并立即启动 关闭防火墙
卸载镜像文件 将镜像文件挂载到网络共享位置 /var/www/html/****地址
然后重新编辑repo文件
如此即为成功
5:dnf软件管理命令
####安装管理包####
dnf repolist ##列出仓库信息
dnf clean all ##清除系统中已经加载的仓库缓存信息 /var/cache/dnf
dnf list all ##列出所有软件
dnf list available ##列出未安装软件
dnf list installed ##列出已安装软件
dnf install ##安装
dnf remove ##卸载
dnf reinstall ##重新安装
dnf search ##搜索
dnf whatprovides ##搜索包含文件的软件包
dnf history ##dnf执行历史
dnf history info ##dnf执行历史详细信息
dnf group list ##列出软件组
dnf group list --installed ##列出已安装软件组
dnf group list --available ##列出未安装软件组
dnf group list --hidden ##列出隐藏软件案组
dnf group install ##安装软件组
dnf group info ##查看软件组信息