使用光碟作為yum軟體安裝源安裝X Window
使用光碟作為yum軟體安裝源安裝X Window
-
掛載光碟機
[[email protected] ~]# mkdir /media/cdrom
[[email protected] ~]# mount /dev/cdrom /media/cdrom/
-
修改/etc/yum.repos.d/目錄下檔案
[[email protected] yum.repos.d]# vi CentOS-Media.repo
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
-
安裝
-
搜尋軟體包
yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror search httpd
-
安裝軟體包
yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror search httpd
-
安裝X Window
[[email protected] ~]# yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror groupinstall 'X Window System'
yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror install firefox
[[email protected] ~]# restart
-
輸出顯示
[[email protected] ~]# export DISPLAY=172.16.4.249:0.0
[[email protected] ~]# firefox