首页    
>>More
选择 CentOS 还是 Scientific Linux

     [Linux] -  [CentOS Scientific RHEL ]
2009-08-11
最近对 CentOS 的批评很多,如 5.3 的迟迟推出,补丁的推出缓慢等等。另一个 RHEL 再编译版本 Scientific Linux 得到了许多人的推崇,排在了 CentOS 的前面。
 
Scientific Linux 是由费米实验室(隶属于美国能源部)、欧洲核子研究中心以及世界各地的领先实验室和大学共同维护的。相比 CentOS,Scientific Linux 有着稳定的支持,基本上不会出现因为某个开发人员的原因导致发行版本突然消失的可能。在发行版本的推出上以及补丁的更新,Scientific Linux 比 CentOS 的响应要快的多,其标准是在 RHEL 发布补丁 48 小时内发布补丁。
 
另外,Scientific Linux 不是专门用于专门的 Scientific 研究的,也没有专门的 science application,之所以有着 scientific 的名字,是因为其最初只是 Fermilab 和 CERN 两个实验室使用,后来才慢慢扩大。

 

Simpleman 发表于 09:41  |  阅读全文  |  评论_2  |  引用_0
使用 yum 管理软件

     [Linux] -  [CentOS yum package ]
2008-05-02

#####
# 使用 yum 管理软件
#################

原文:http://mirror.centos.org/centos/4/docs/html/yum/index.html
适用于 CentOS

su -c 'yum install tsclient'
su -c 'yum groupinstall "MySQL Database"'

su -c 'yum update tsclient'
su -c 'yum groupupdate "MySQL Database"'

su -c 'yum remove tsclient'
su -c 'yum groupremove "MySQL Database"'

su -c 'yum list tsclient'
su -c 'yum list tsclient-0.132'

su -c 'yum search PalmPilot' # search 参数会查询 names, descriptions, summaries and listed package maintainers.
su -c 'yum provides libneon' # provides 参数会查询 packages 包含的文件以及 software 提供的功能。

如果使用 wildcards,需要使用在 wildcards 前使用 \,如"\?", "\*",
su -c 'yum list tsc\*'

注意:
su -c 'yum update' # 会升级系统中所有软件到最新

如何让 yum 每天自动升级系统?
su -c '/sbin/chkconfig --level 345 yum on; /sbin/service yum start'
这一句的作用是通过 chkconfig 设置 yum 在运行级别 345 时自动启动,然后通过 service yum start 立刻运行 yum,这时会调用 /etc/rc.d/init.d/yum,继而调用 /etc/cron.daily/yum.cron,这将启动 cron 服务在每天早上 4 点自动运行 yum。

关于 yum 使用代理:http://mirror.centos.org/centos/4/docs/html/yum/sn-yum-proxy-server.html
By default, yum accesses network repositories with HTTP. All yum HTTP operations use HTTP/1.1, and are compatible with web proxy servers that support this standard. You may also access FTP repositories, and configure yum to use an FTP proxy server. The squid package provides a proxy service for both HTTP/1.1 and FTP connections.

举例:
# vi /etc/yum.conf # 在 yum.conf 中配置将试这台机器的所有用户都使用这个配置。
# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty

# vi ~/.bash_profile # 修改用户的 shell 配置文件,可以让 yum 的代理配置只适用于这个用户
# The Web proxy server, with the username and password for this account
http_proxy="http://yum-user:qwerty@mycache.mydomain.com:3128"
export http_proxy

Simpleman 发表于 17:27  |  阅读全文  |  评论_0  |  引用_0
分页共1页 1