在linux中,能否在线安装程序包,不需要去官网上去下载,有高手知道的吗???

[复制链接]
查看11 | 回复8 | 2011-5-30 07:53:37 | 显示全部楼层 |阅读模式
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
yuminstall你要按的东西
当然说的是redhat或者centos









<h4class=\"ask\">追问


不可以呀,yuminstallmysql,这样子,总是提示:
Loadedplugins:rhnplugin,security
ThissystemisnotregisteredwithRHN.
RHNsupportwillbedisabled.
SettingupInstallProcess
Nopackagemysql*.rpmavailable.
Nothingtodo
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
你的linux是什么版本啊?
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
redhat5
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
那就好解释了你用的yum在安装的最后一步没有联机注册,所有redhat不让你用。
用rpm装吧,不过需要安装很多关联的东西,很麻烦。安装光盘里应该都带,一个个装吧,确哪个装哪个。
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
是rpm-ivh-ymysql吗,我刚学习linux,感谢
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
yumlistmysql
查看下要按照的程序包是否存在
Loadedplugins:fastestmirror
Loadingmirrorspeedsfromcachedhostfile
*base:mirrors.versaweb.com
*extras:mirrors.easynews.com
*updates:mirrors.versaweb.com
AvailablePackages
mysql.i3865.0.77-4.el5_6.6updates
我得到的是这个信息
安装的话,就用下面的命令

yum-yinstallmysql
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
我按你说的做了
[root@localhost~]#yumlistsamba
输出为:
Loadedplugins:rhnplugin,security
ThissystemisnotregisteredwithRHN.
RHNsupportwillbedisabled.
Error:NomatchingPackagestolist
mysql也是一样的输出
回复

使用道具 举报

千问 | 2011-5-30 07:53:37 | 显示全部楼层
哪你就需要更换更新源,或者添加第三方更新源
下面是一个第三方更新源
<ahref=\"http://hi.baidu.com/seoyingjie/blog/item/371e640a655acbdc7acbe164.html\"target=\"_blank\">http://hi.baidu.com/seoyingjie/blog/item/371e640a655acbdc7acbe164.html</a>

yum使用教程,我转载的
<ahref=\"http://hi.baidu.com/seoyingjie/blog/item/8012af3c165373d6d562253c.html\"target=\"_blank\">http://hi.baidu.com/seoyingjie/blog/item/8012af3c165373d6d562253c.html</a>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行