2.软文推荐
3.软文推荐
目录: 1、yum安装软件之后如何保存rpm安装包 2、yum命令使用下列哪个参数重新安装软件包 3、yum安装deb包 4、yum,命令只能安装下载到机器的安装包不能在线安装正确还是错误 5、linux如何安装yum yum安装软件之后如何保存rpm安装包实验 linux系统 的时候大家都有一个烦恼,用yum安装的软件包不知道去哪里了,不像windows那样直观可以将安装包放到一个地方保存起来,接下来为大家介绍yum安装后如果保存rpm包。
环境: Centos 7
方法一
修改/etc/yum.conf将报错字段0改为1
测试安装telnet
[root@localhost packages]# yum install telnet -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
正在解决依赖关系
-- 正在检查事务
--- 软件包 telnet.x86_64.1.0.17-65.el7_8 将被 安装
-- 解决依赖关系完成
依赖关系解决
===============================================================================================
Package 架构 版本 源 大小
===============================================================================================
正在安装:
telnet x86_64 1:0.17-65.el7_8 updates 64 k
事务概要
===============================================================================================
安装 1 软件包
总计:64 k
安装大小:113 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 1:telnet-0.17-65.el7_8.x86_64 1/1
验证中 : 1:telnet-0.17-65.el7_8.x86_64 1/1
已安装:
telnet.x86_64 1:0.17-65.el7_8
完毕!
查看安装包所在位置
需要根据安装的时候提示的源的位置进行查找,一般会有base epel,extras,updates这几个类型,本次安装显示源是updates所以去updates目录下寻找。
[root@localhost packages]# ls
telnet-0.17-65.el7_8.x86_64.rpm
[root@localhost packages]# pwd
/var/cache/yum/x86_64/7/updates/packages
[root@localhost packages]#
方法二
安装yum-utils软件来达到保持目的
[root@localhost ~]# yum install yum-utils -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
正在解决依赖关系
-- 正在检查事务
--- 软件包 yum-utils.noarch.0.1.1.31-54.el7_8 将被 安装
-- 解决依赖关系完成
依赖关系解决
========================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================
正在安装:
yum-utils noarch 1.1.31-54.el7_8 updates 122 k
事务概要
========================================================================================================================================
安装 1 软件包
总计:122 k
安装大小:337 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : yum-utils-1.1.31-54.el7_8.noarch 1/1
验证中 : yum-utils-1.1.31-54.el7_8.noarch 1/1
已安装:
yum-utils.noarch 0:1.1.31-54.el7_8
完毕!
[root@localhost ~]#
测试安装telnet
--destdir指定目录, 最后面指定需要安装的包名
[root@localhost ~]# yumdownloader --destdir=/root telnet
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
[root@localhost ~]# ls
telnet-0.17-65.el7_8.x86_64.rpm
总结
两种方法各有特色,第一种安装方便查找不方便,第二种改变了习惯的安装 命令 ,但是保存路径很容易查找。
yum命令使用下列哪个参数重新安装软件包search/install/upgrade/remove。根据查询计算机相关资料可知,yum命令使用search/install/upgrade/remove参数重新安装软件包。yum是Linux比较常用到的命令功能,全称YellowdogUpdater,Modified,是一个Shell前端软件包管理器。
yum安装deb包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破解程序。
yum,命令只能安装下载到机器的安装包不能在线安装正确还是错误错误,
方法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)(它安装一个安装包,这个安装包包涵了很多单个软件,以及单个软件的依赖关系。)
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 - Debug
baseurl=
enabled=1
gpgcheck=1
gpgkey=
第六步:清除yum安装时的缓存:
[root@localhost ~]# yum clean all
1
目录:1、雷网主机 Namecheap域名过期后如何续费?2、去哪里购买域名3、NameCheap域名转入方法另附新域名注册4、国外十大域名注册商都有哪些...