时间:2021-05-25
sudo vim /etc/yum.repos.d/CentOS-Base.repo
复制代码代码如下:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
接下来里面更新:sudo yum update
更新完后,下载几个字体,wqy-microhei.ttc,YaHeiConsolas,Microsoft_YaHei等,然后在系统设置->外观里面修改默认字体。
———RPMforge repository—————
有时候有些软件可能在中心的repo里面的没有,这时候最好使用RPMforge repository,但是这样来的话升级的时候会有version冲突,于是可以这样子设置:
先下载RPMForge的repo:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm
安装:
rpm -ivh rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm
you’ll get a warning, but it will proceed based on the flags that you set. warning: rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm : Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]
接下来最最重要的就是设置优先级了:
Now you need to edit /etc/yum.repos.d/CentOS-Base.repo and add these priorities to the bottoms of each of the following repo sections:
复制代码代码如下:
[base]
priority=1
[updates]
priority=1
[extras]
priority=1
Save your changes on this file and edit the rpmforge.repo file. You’ll only need to edit the one repository section.
[rpmforge]
priority=5
Save your changes and you’re finished.
-----------开始更新浏览器版本至firefox18-------------
参考文章:http:///2011/install-firefox-on-fedora-centos-red-hat-rhel/
备份下先:
tar -cvzf $HOME/mozilla-firefox-profiles-backup.tar.gz $HOME/.mozilla/firefox/
su -
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
检查有用的版本:
yum --enablerepo=remi list firefox
# 更新或者安装 Mozilla Firefox 18/10
yum --enablerepo=remi update firefox
# 启动 Firefox 18/10
firefox
firefox安装那个flash插件:
去adobe的官网上去下载,选择tar.gz包,解压,得到libflashplayer.so, 把这个文件复制到 /home/username/.mozilla/plugins目录下,重启firefox就行了。要注意的是,libflashplayer.so必须属于指定普通用户。
-------------install google chrome 24------------
sudo vim /etc/yum.repos.d/CentOS-Base.repo
复制代码代码如下:
[google64]
name=Google – x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
安装稳定版本:sudo yum install google-chrome-stable
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
小红书靠着笔记分享,获得精准粉丝引流。笔记必须保证是原创内容,还要一定要避开敏感词。那小红书的推广笔记是存在利益相关的笔记,比如品牌赠送、付费、邀请试用、晒单抽
小红书靠着笔记分享,获得精准粉丝引流。笔记必须保证是原创内容,还要一定要避开敏感词。那小红书的推广笔记是存在利益相关的笔记,比如品牌赠送、付费、邀请试用、晒单抽
笔记本电脑已然成为了现代年轻人的必备的一款生活用品了。现在人们在生活中的时候使用笔记本电脑的频率是比较的高的。我们不仅仅会使用笔记本电脑娱乐,同时我们也会利用笔
笔记本电池充不进电怎么办笔记本电池修复方法 很多人使用笔记本电脑的时候,只要有电源就插着电源用笔记本导致笔记本。导致笔记本的电源没有全部利用起来。所以正确
笔记本电脑已经成为现代人必备的装备之一,使用笔记本电脑,人们几乎可以随时随地的使用笔记本电脑来处理各项事务,进行娱乐游戏。联想笔记本是深受人们喜爱的一种电脑品牌