
[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 - Debug
baseurl=file:///yum/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
第六步:清除yum安装时的缓存:
[root@localhost ~]# yum clean all
yum安装deb包在rhel或者centos这类linux系统下
最简单的就是yum安装了。rhel5之后,基本上都是推荐这种方式。
接下来就是rpm安装,编译好的安装包,直接rpm安装就可以了。
最后就是tar包安装,需要自己手动编译才行。
rhel下一般不涉及到apt、deb
在debian、ubuntu之类的linux系统下,apt和deb就相当于rpm安装,都是他人编译好了,直接安装就可以了。
同时,安卓系统一般就是apt、deb安装程序的。
在苹果ios系统下,在“越狱”之后,就可以通过cydia安装deb程序,或者有些apt格式的app破解程序。
错误,方法1.linux yum命令安装(linux yum命令)
2022-09-24 21:32 编程技术 59
linux下的yum怎么读?
Linux下yum音标: (丫木)。
yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。提供软件查找、安装、删除某一个或一组甚至全部软件包的命令,而且命令简洁而又好记。
linux的安装命令?
安装程序
1.常用命令
yum install yum-fastestmirror (自动搜索最快镜像插件)
yum install yumex (安装yum图形窗口插件)
yum grouplist (查看可能批量安装的列表)
2.安装
yum install (全部安装)
yum install xxx (安装指定xxx)(它安装单个软件,以及这个软件的依赖关系)
yum groupinstall xxx (安装指定程序xxx)(它安装一个安装包,这个安装包包涵了很多单个软件,以及单个软件的依赖关系。)
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)