linux如何安装yum | 您所在的位置:网站首页 › debian系统安装yum › linux如何安装yum |
第一步:创建一个新文件夹,并把光盘的内容全部复制到该文件夹内:[root@localhost ~]# mkdir /yum[root@localhost ~]# cp -rvf /misc/cd/* /yum第二步:安装工具包:[root@localhost ~]# rpm -ivh /yum/Server/createrepo-0.4.11-3.el5.noarch.rpm第三步:生成仓库数据库:[root@localhost ~]# cd /yum[root@localhost yum]# createrepo . //注意后面的.第四步:查看文件:[root@localhost yum]# ls /yum/repodata/filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml第五步:客户端配置:[root@localhost ~]# cp /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/chenbin.repo[root@localhost ~]# vi /etc/yum.repos.d/chenbin.repo [rhel-chenbin]name=Red Hat Enterprise Linux $releasever - $basearch - Debugbaseurl=file:///yum/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release第六步:清除yum安装时的缓存:[root@localhost ~]# yum clean alllinux系统下没有yum命令怎么解决呢?下面是具体操作步骤: 1、切换到root用户身份。普通用户切换为root用户:在终端运行命令sudo-s。
2、检测是否安装了build-essential程序包,输入命令:apt-getinstallbuild-essential。
3、安装yum,输入命令:apt-getinstallyum。
4、yum安装成功即可。
以上就是小编今天的分享了,希望可以帮助到大家。 Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。简而言之,就是我们下载软件包的一个工具,更智能化一些。 共享型yum源的部署(基于httpd) 上述的yum源只能本机用,别人不能用,所以能不能共享出去yum源呢? 安装httpd,可以让所有局域网内同一网段的(可以ping通)主机都可以使用yum源。 配置网络yum源 首先要开启httpd服务,要关闭防火墙。 systemctl start httpd ##开启httpd共享服务 systemctl enable httpd ##开机自启动 systemctl stop firewalld ##关闭火墙 systemctl disable firewalld ##开机不启动火墙 注意:httpd服务共享的目录为:/var/www/html/中的文件 在httpd共享目录中创建一个用于挂载系统镜像的目录: 欢迎分享,转载请注明来源:内存溢出 原文地址:https://outofmemory.cn/yw/5929863.html |
CopyRight 2018-2019 实验室设备网 版权所有 |