当前位置:网站首页>Remember the problem that RedHat 6 Yum cannot be used once
Remember the problem that RedHat 6 Yum cannot be used once
2022-04-22 06:45:00 【CN_ Seagull】
Preface
The experiment uses yum Way to install wireshark, Virtual machines provided linux The version is Redhat 6.
perform yum -y install wireshark wireshark-gnome Command to install , Tips :
No package xxxxx available( Later I tried to install 、 Update, etc. , This is the order )
So find out why , The discovery is due to Redhat Self contained yum Need to register , So we can only use free CentOS Of yum.
Problem solving
First, ensure that the virtual machine is connected to the network , If not connected , Please check the service for VM term , take VM Service startup .
-
Because you can't use your own , So we have to uninstall our own first , Use
rpmcommand :
rpm -qa|grep yum|xargs rpm -e --nodeps
( Remove andyumEverything about ) -
Install the required files , Execute the following commands respectively :
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-libs-2.6.6-66.el6_8.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-updateonboot-1.1.30-41.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-utils-1.1.30-41.el6.noarch.rpm
Installation :
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh --force python-libs-2.6.6-66.el6_8.x86_64.rpm
rpm -ivh --force python-urlgrabber-3.9.1-11.el6.noarch.rpm
rpm -ivh --force yum-*
-
open Linux Website in , Go to CentOS Image usage help Website click on
CentenOS 6Download the corresponding configuration file . -
Put the downloaded configuration file in
/etc/yum.repos.d/Under the table of contents .
( Be careful : It's best to have only one... In this directory.repoPostfix file , Delete the original configuration file after backup ) -
use
vim CentenOS6-Base-163.repoEdit the configuration file , Input:%s/$releasever/6/gThe order will$releaseverReplace with6.
(yum Medium$releaseverVariable is taken redhat-release-server rpm The attribute value of the package ( %{version}), So this step is actually setting the version number ) -
Clear cache
yum clean all, Then rebuild the cacheyum makecache, thus ,yuminstallation is complete .
To test yum -y install wireshark wireshark-gnome command , Installation successful !
版权声明
本文为[CN_ Seagull]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220557265507.html
边栏推荐
- 封装微信小程序实时获取经纬度+权限判定+引导授权(无30秒延迟)
- api集中管理
- Uniapp applet anchor point (only support the current page operation, do not cross page operation)
- Pixel手机电信4G破解(含解锁BL和root)
- A set of SQL statements supports both Oracle and MySQL?
- How to set the size of a window in a window function
- 封装uni网络请求(uni.request)
- Redis取出数据乱码问题
- (4种)实现垂直居中的方法总结
- 剑指offer:二叉树中和为某一值的路径(回溯)
猜你喜欢
随机推荐
从零开始学安卓(kotlin)三——BaseActivity、ActivityCollector
EXCEL IFS函数的使用
Uniapp applet anchor point (only support the current page operation, do not cross page operation)
How to set the size of a window in a window function
uniapp解决首页点击返回(手机返回键)跳到登录页
Click to trigger other DOM elements: < $refs, $El >
APP首次进入,弹出服务协议和隐私政策
Uniapp web View example (wechat applet)
(4) summary of methods to realize vertical centering
创新实训(十)
Spark常见问题整理--面试前必看
pixel手机救砖教程
EXCEL VLOOKUP函数的使用(二)
CLion+OpenCV 识别身份证号码---检测身份证号码
创新实训(五)配置信息
2017年的最后一天
spark小案例——RDD,sparkSQL
创新实训(十一)机票爬取 公司信息
获取两个时间之间的所有日期
uniapp web-view示例(微信小程序)









