linux安装软件的三种方式:yum install 、rpm安装以及源码包安装

linux安装软件的三种方式:yum install 、rpm安装以及源码包安装_木木统的博客-CSDN博客_install rpm

--常用命令

1.安装软件

yum install 软件名称

2.卸载软件

yum remove 软件名称

3.更新软件

yum update 软件名称

4.列出所有可安装的软件包

yum list

5.列出所有可更新的软件包

yum list updates

6.列出所有已安装的软件包

yum list installed

7.列出所有可更新的软件包信息

yum info updates

8.列出所有已安裝的软件包信息

yum info installed
9. 清理并生成缓存

yum clean all
yum makecache

rm -rf /var/cache/yum/*

--其它命令

check Check for problems in the rpmdb
check-update 检查是否有软件包更新
clean 删除缓存的数据
deplist 列出软件包的依赖关系
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase 从系统中移除一个或多个软件包
groupinfo 显示组的详细信息
groupinstall 向系统中安装一组软件包
grouplist 列出可安装的组
groupremove 从系统中移除一组软件包
help 显示用法信息
history Display, or use, the transaction history
info 显示关于软件包或组的详细信息
install 向系统中安装一个或多个软件包
list 列出一个或一组软件包
load-transaction load a saved transaction from filename
makecache 创建元数据缓存
provides 查找提供指定内容的软件包
reinstall 覆盖安装一个包
repolist 显示已配置的仓库
resolvedep 判断哪个包提供了指定的依赖
search 在软件包详细信息中搜索指定字符串
shell 运行交互式的 yum 外壳
update 更新系统中的一个或多个软件包
update-minimal Works like update, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade 更新软件包同时考虑软件包取代关系
version yum版本信息

===============================20210726============================

yum 应用问题

curl:(7)failed to connect to 2404:6800:4005:c00::5b:网络不可达

关闭ipv6

使用yum安装应用程序时候,报错:[Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:da8:8000:6023::230: 网络不可达" - radio_v.c - 博客园 (cnblogs.com)

===============================20220901============================

[root@es1 sslh]# yum install net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

问题原因
上网查了一下,这是因为epel仓库默认使用的https,如下:
解决方法

1、打开 /etc/yum.repos.d/epel.repo;
2、注释掉mirrorlist,取消注释baseurl;
3、再次使用yum命令即正常!

yum clean all
yum makecache
yum update
yum install -y lsof

yum命令——安装、卸载、查询等相关推荐

  1. CentOS下用yum命令安装jdk

    一.使用yum命令安装 1.查看是否已安装JDK,卸载 [plain] view plain copy [root@192 ~]# yum list installed |grep java [pla ...

  2. 使用yum命令安装mysql_Linux Centos 下使用yum 命令安装mysql实现步骤

    linux centos 下使用yum 命令安装mysql实现步骤 1. 查看服务器中有没有安装过mysql 1. 查看有没有安装包: yum list mysql* #移除已经安装的mysql yu ...

  3. CentOS 下使用yum 命令安装MySQL

    CentOS Linux下使用yum 命令安装MySQL过程记录. 1. 查看服务器中有没有安装过MySQL 1. 查看有没有安装包:     yum list mysql*     #移除已经安装的 ...

  4. linux的mysql本地yum安装_Linux Centos 下使用yum 命令安装mysql实现步骤

    Linux Centos 下使用yum 命令安装mysql实现步骤 1. 查看服务器中有没有安装过Mysql 1. 查看有没有安装包: yum list mysql* #移除已经安装的mysql yu ...

  5. centos 安装java sdk_Linux——CentOS7使用yum命令安装Java SDK

    安装jdk有很多种方式比如我们可以在Oracle Technology Network>Java>Java SE>Download(点此链接跳转)下载jdk-8u25-linux-x ...

  6. centos下使用yum命令安装php mcrypt扩展

    默认情况下centos 6.3下是无法使用yum命令为php安装mcrypt扩展的,但通过以下三个步骤,我们就可以使用yum install php-mcrypt命令了. 下面的安装方法是我边安装,边 ...

  7. 【转】CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”...

    源自:http://www.cnblogs.com/yangbingqi/p/3328610.html 刚安装完CentOS,使用yum命令安装一些常用的软件,使用如下命令:yum grouplist ...

  8. centos使用yum命令安装报错 File /usr/bin/yum, line 30 except KeyboardInterrupt, e:

    原因 centos7使用yum命令安装报错如下: File "/usr/bin/yum", line 30except KeyboardInterrupt, e:^ SyntaxE ...

  9. linux安装中文语言命令,Centos使用yum命令安装中文语言包(fonts-chinese.noarch,m17n-db-common-cjk)...

    Centos使用yum命令安装中文语言包(fonts-chinese.noarch,m17n-db-common-cjk) 执行以下命令 [root@f5ha.com ~]# yum install ...

  10. telnet yum linux安装,linux使用yum命令安装telnet

    在安装测试flume的时候发现没有安装telnet, 顺便总结记录了一下yum.rpm命令的使用. 如果没有安装telnet的话, 需要使用yum命令安装. - 1,先检查是否安装了telnet : ...

最新文章

  1. java.lang.exception_java.lang.RuntimeException和java.lang.Exception
  2. EOS净流入超3亿,比特币继续震荡盘整
  3. flask 配置文件和学习资料
  4. SqlServer 自动化分区方案
  5. Linux嗅探ettercap
  6. oracle 加查询锁,oracle 锁查询 select加锁方法
  7. 三十二、从0到1教你用Scrapy来爬取整站天气网
  8. BigTable的开源实现:HBase数据库
  9. 是的,我不做技术经理了
  10. java多线程批量读取文件(七)
  11. 查询:使用多表连接查询数据
  12. android自定义对话框_Android自定义提醒对话框
  13. 如何在 SQL Server 2005 故障转移群集中添加或删除节点(安装程序)
  14. 拓端tecdat|R语言公交地铁路线进出站数据挖掘网络图可视化
  15. Ubuntu18.04登陆界面美化--Mac主题
  16. 大学生HTML作业篮球网页 HTML作业篮球网页期末作业 HTML+CSS篮球网页 HTML学生作业体育篮球网页
  17. 比google earth还好的实景地图
  18. 抽象工厂模式之手机主题
  19. 如何“谨慎”使用“数据驱动”的风控模型(三)——监控篇
  20. Git Commit Message校验踩坑指南

热门文章

  1. [转]免费建QQ群的方法
  2. 程序员常用英语词汇(022)
  3. linux-mate桌面命令集锦
  4. 比尔.盖茨哭了——微软全部序列号
  5. matlab中crc,matlab中CRC的函数使用
  6. Oracle中批量删除数据
  7. [附源码]Java计算机毕业设计SSM宠物销售管理系统
  8. Navicat筛选功能
  9. Apple将在2013年启动香港数据中心的建设
  10. html在线播放mp3代码实现,实现音乐播放器的代码(html5+css3+jquery)