LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: hugh8765

关于yum ,不得不发贴了

[复制链接]
发表于 2006-12-22 12:50:22 | 显示全部楼层

鄙视楼主

你用linux才多久。看你说的问题(不支持mp3)看来就没用多久,mp3是有版权的。你以为国外都像国内这样盗版到处飞阿。再说yum我认为apt-get,yum之类的恰好是未来软件的发展方向,大公司架设一台软件服务器,里面的软件可以免费下载,只是服务要收费。用不惯linux你就别用,发什么牢骚,你怎么不说win下的病毒把你给折腾坏了,win和linux各有弊端。关键看你怎么看了。希望楼主不要再发这样的帖子了。关键是中国人民被微软牵着鼻子走了太久了,微软技术更新太快,win98/2000/xp/vista.  mfc/.net framework,你根本跟不上它。而linux呢。等你用的时间久了。你就知道了。我现在在家里只用linux,在办公室除非工作用.net, vc6(领导要求),其他工作如处理图片,听歌,写自己的程序,全部在linux下面。
回复 支持 反对

使用道具 举报

发表于 2006-12-22 13:51:32 | 显示全部楼层
Post by hugh8765
[QUOTE=philhu2000]我也是个新手,试着回复你的问题。如有不对的,请各位多多指教。
1. mount :block device /dev/cdrom is write-protected,mounting read-only应属正常(具体的英文提示是什么样子,我得回去后确定确定)。直接访问/mnt/fc5即可。
2. yum源:抱歉。我还没解决。
3. vmtools 安装:如果你确定自己装了gcc(好象是在administration tool里面,记得不是很清楚),rpm -ivh *.rpm之后,输入vm,按两次Tab健,选择扩展名为pl的包,一路回车后应该就可以装上了。当然,你得重启后才生效。
4.命令大全我有。发邮件给我,我附给你philhu2000@tom.com[/QUOTE

我想知道的是挂在iso镜像和挂在光驱里面的光盘为什么前者可以用add/remove software 后者则报unable to retrieving software information?


在单机系统的虚拟机下,如果你装的是Fedora Core 6, 不管是iso镜象还是直接使用光驱里的光盘,都是没法用add/remove software的,系统会提示unable to retrieving software information,原因可能是因为没有联网。而在RedHat Linux 9下就没有这种情况。目前我还不知道怎么去解决。我这边的情况是这样子的。如果你使用的是Fedora Core 6,在单机系统的虚拟机下可以add/remove software,还请告知是如何实现的。
回复 支持 反对

使用道具 举报

发表于 2006-12-22 13:53:48 | 显示全部楼层
Post by hugh8765
philhu2000:
我运行过rpm -ivh 运行vmtools的rpm包,结果我说已经安装了,可是虚拟机右下方还是说未安装
下面是安装tar。gz里面的。pl文件,一直都说我gcc的头文件路径不对,我也不知道在那里/src/include?

[root@hu_fedora vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware software has been detected.

The previous installation was made by the rpm installer (version 3).

Converting the rpm3 installer database format
        to the tar3 installer database format.


Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]


In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 5.5.3 build-34685 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [确定]
Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes


我晚上再仔细测试下。在RedHat Linux 9下安装没有问题,Fedora Core下我还没怎么试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-22 14:16:00 | 显示全部楼层
Post by se9en
你用linux才多久。看你说的问题(不支持mp3)看来就没用多久,mp3是有版权的。你以为国外都像国内这样盗版到处飞阿。再说yum我认为apt-get,yum之类的恰好是未来软件的发展方向,大公司架设一台软件服务器,里面的软件可以免费下载,只是服务要收费。用不惯linux你就别用,发什么牢骚,你怎么不说win下的病毒把你给折腾坏了,win和linux各有弊端。关键看你怎么看了。希望楼主不要再发这样的帖子了。关键是中国人民被微软牵着鼻子走了太久了,微软技术更新太快,win98/2000/xp/vista.  mfc/.net framework,你根本跟不上它。而linux呢。等你用的时间久了。你就知道了。我现在在家里只用linux,在办公室除非工作用.net, vc6(领导要求),其他工作如处理图片,听歌,写自己的程序,全部在linux下面。



这位大哥说的我就不乐意听了,我也不是不知道linux和window区别,转linux的时候我也有心里准备了,不然也不会说我发的牢骚群属废话了,yum是未来发展方向也好,至少我重装fc 5遍就是为了yum能用,就凭着我也没说linux不好,只是说实在的我看了很多贴都是关于yum安装不成功的,感觉很郁闷,这样也不行。。。你打这么多字还不如帮我解决问题,那样我会跟感激
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-22 14:34:22 | 显示全部楼层
Post by philhu2000
[QUOTE=hugh8765]

在单机系统的虚拟机下,如果你装的是Fedora Core 6, 不管是iso镜象还是直接使用光驱里的光盘,都是没法用add/remove software的,系统会提示unable to retrieving software information,原因可能是因为没有联网。而在RedHat Linux 9下就没有这种情况。目前我还不知道怎么去解决。我这边的情况是这样子的。如果你使用的是Fedora Core 6,在单机系统的虚拟机下可以add/remove software,还请告知是如何实现的。



谢谢回贴,关于在单机系统的虚拟机下可以add/remove software,我也是网上看贴才知道的,不过我用的是fc5 ,主要是/etc/yum.repos.d目录下的文件要都先移出去,我是直接备份了删除,然后里面只自己建立一个iso.repo文件(名字理应可以随便起,后缀.repo就不知道了,我没试过其他名字),iso.repo文件内容如下
[iso]
name=local iso
baseurl=file:///mnt/fc5   
failovermethod=priority
enabled=1
gpgcheck=0
,最后3行可以不加,不过我也不懂有什么用,/mnt/fc5是我挂在iso的挂在点,这样,就可以用add/remove software了
关于挂在iso镜像我是建了个可以执行的文件(/mnt/mount_iso)里面就只有#mount -o loop /soft/FC-5-i386-DVD.iso /mnt/fc5   一句话,然后chmod a+x /mnt/mount_iso
每次启动都要挂一次

看得贴我没有保存,给你连接,你可以取看看
http://blog.sina.com.cn/u/49ca5579010005kt


可惜我又得重装fc,有个贴说yum源不能用最好装的时候不要选定制,唉,只好试试再说
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-22 14:38:33 | 显示全部楼层

关于yum

http://bbs.linuxsky.net/thread-1641-1-1.html

刚找到一个比较全面的yum介绍,大家不回贴也可以看看
回复 支持 反对

使用道具 举报

发表于 2006-12-22 22:32:50 | 显示全部楼层
Post by hugh8765
philhu2000:
我运行过rpm -ivh 运行vmtools的rpm包,结果我说已经安装了,可是虚拟机右下方还是说未安装
下面是安装tar。gz里面的。pl文件,一直都说我gcc的头文件路径不对,我也不知道在那里/src/include?

[root@hu_fedora vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware software has been detected.

The previous installation was made by the rpm installer (version 3).

Converting the rpm3 installer database format
        to the tar3 installer database format.


Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]


In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 5.5.3 build-34685 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [确定]
Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes


今晚测试了一下:安装RedHat,只需选择display size,就ok了。可是在安装Fedora Core 6时,先得在try to build the vmhgfs module for your system (need a c compiler),然后在what's the location of the directory of c header file这两处地方Enter,再选择display size,重启动后发现x-windows的配置已改,无法进去,得重新配,最终vmware tools安装失败。如果选择用tar命令来安装,会提示cannot open the file or directory。原因待查。
至于你上面的情况是怎么出现的,我也说不上来。建议你回来初始安装状态再试试看。
回复 支持 反对

使用道具 举报

发表于 2006-12-22 22:38:35 | 显示全部楼层
谢谢回贴,关于在单机系统的虚拟机下可以add/remove software,我也是网上看贴才知道的,不过我用的是fc5 ,主要是/etc/yum.repos.d目录下的文件要都先移出去,我是直接备份了删除,然后里面只自己建立一个iso.repo文件(名字理应可以随便起,后缀.repo就不知道了,我没试过其他名字),iso.repo文件内容如下
[iso]
name=local iso
baseurl=file:///mnt/fc5   
failovermethod=priority
enabled=1
gpgcheck=0
,最后3行可以不加,不过我也不懂有什么用,/mnt/fc5是我挂在iso的挂在点,这样,就可以用add/remove software了
关于挂在iso镜像我是建了个可以执行的文件(/mnt/mount_iso)里面就只有#mount -o loop /soft/FC-5-i386-DVD.iso /mnt/fc5   一句话,然后chmod a+x /mnt/mount_iso
每次启动都要挂一次

看得贴我没有保存,给你连接,你可以取看看
http://blog.sina.com.cn/u/49ca5579010005kt


可惜我又得重装fc,有个贴说yum源不能用最好装的时候不要选定制,唉,只好试试再说[/QUOTE]


谢谢你提供的资料。看来我得好好看看yum方面的资料。
回复 支持 反对

使用道具 举报

发表于 2006-12-24 09:49:26 | 显示全部楼层
我用yum也经常出错。。。教育网的源。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-25 09:00:42 | 显示全部楼层
我在/etc/yum.conf 中配置了下代理端口什么的,现在可以连接到livna的yum源了,不过yum安装上还是有些生疏,还得继续做功课
回复 支持 反对

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表