redhat7.5安装图形界面:
[root@wwyt ~]# rpm -ivh --nodeps --force xorg-x11-font*
[root@wwyt ~]# mount -o loop -t iso9660 rhel-server-7.5-x86_64-dvd.iso /media/iso/
[root@wwyt ~]# cat /etc/yum.repos.d/my.repo
[base]
name=redhat7.5
baseurl=file:///media/iso
gpgcheck=1
enabled=1
gpgkey=file:///media/iso/RPM-GPG-KEY-redhat-release
getenforce setenforce 0
[root@wwyt ~]# yum clean all
[root@wwyt ~]# yum groupinstall "Desktop"
[root@wwyt ~]yum groupinstall "X Window System"
[root@wwyt ~]yum groupinstall "KDE Desktop"
[root@wwyt ~]yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
[root@wwyt ~]#yum -y groupinstall "Server with GUI"[root@wwyt ~]rpm -ivh llvm-private-5.0.0-3.el7.x86_64.rpm --force --nodeps[root@wwyt ~]#yum -y groupinstall "Server with GUI" --setopt=protected_multilib=false
[root@wwyt ~]yum groupinstall "X Window System" --setopt=protected_multilib=false
[root@wwyt ~]yum remove mesa-libglapi-18.3.4-5.el7.x86_64
[root@wwyt ~]yum -y groupinstall "KDE Desktop" --setopt=protected_multilib=false
[root@wwyt ~]yum -y groupinstall "Desktop" --setopt=protected_multilib=falseyum install nautilus-open-terminal
yum groupinstall “Graphical Administration Tools”yum groupinstall “Chinese Support” -y
#rpm -ivh glibc-common-2.12-1.25.el6.x86_64.rpm
# rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm
# rpm -ivh libgcc-4.4.5-6.el6.x86_64.rpm
# rpm -ivh glibc-2.12-1.25.el6.x86_64.rpm
# rpm -ivh libgomp-4.4.5-6.el6.x86_64.rpm
# rpm -ivh nscd-2.12-1.25.el6.x86_64.rpm
# rpm -ivh glibc-headers-2.12-1.25.el6.x86_64.rpm
# rpm -ivh glibc-devel-2.12-1.25.el6.x86_64.rpm
# rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
# rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
# rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
# rpm -ivh cpp-4.4.5-6.el6.x86_64.rpm
# rpm -ivh gcc-4.4.5-6.el6.x86_64.rpm
#rpm -ivh --nodeps --force libjpeg-turbo-*
rpm -ivh --nodeps --force gnutls-2.12.23-22.el6.x86_64.rpm
# rpm -ivh libstdc++-4.4.5-6.el6.x86_64.rpm
# rpm -ivh libstdc++-devel-4.4.5-6.el6.x86_64.rpm
# rpm -ivh gcc-c++-4.4.5-6.el6.x86_64.rpm
rpm -ivh --nodeps --force libtasn1-*
rpm -ivh --nodeps --force pixman-0.34.0-1.el7.x86_64.rpm
rpm -ivh --nodeps --force libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm rpm -ivh --nodeps --force libfontenc-1.1.2-3.el6.x86_64.rpm
libXext
libXtst
libX11
libXau
libxcb
libXi
elfutils-libelf-devel
tcl-devel-8.3.5-92.i386.ipm
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
556 rpm -ivh --force --nodeps binutils-2.27-27.base.el7.x86_64.rpm 557 rpm -ivh --force --nodeps compat-libcap1-1.10-7.el7.x86_64.rpm 558 cd /home/Packages/559 rpm -ivh --force --nodeps compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm 560 rpm -ivh --force --nodeps compat-libstdc++-33-3.2.3-69.el6.i686.rpm 561 cd /media/iso/Packages/562 rpm -ivh --force --nodeps make-3.82-23.el7.x86_64.rpm 563 rpm -ivh --force --nodeps sysstat-10.1.5-13.el7.x86_64.rpm 564 rpm -ivh --force --nodeps ksh-20120801-137.el7.x86_64.rpm 565 pwd566 yum install -y gmp-6.0.0-15.el7.x86_64.rpm 567 cd /home/Packages/568 rpm -ivh --nodeps --force glibc-common-2.12-1.192.el6.x86_64.rpm 569 rpm -ivh --nodeps --force kernel-headers-2.6.32-642.el6.x86_64.rpm 570 rpm -ivh --nodeps --force libgcc-4.4.7-17.el6.x86_64.rpm 571 rpm -ivh --nodeps --force glibc-2.12-1.192.el6.x86_64.rpm 572 rpm -ivh --nodeps --force libgomp-4.4.7-17.el6.x86_64.rpm 573 rpm -ivh --nodeps --force nscd-2.12-1.192.el6.x86_64.rpm 574 rpm -ivh --nodeps --force glibc-headers-2.12-1.192.el6.x86_64.rpm 575 rpm -ivh --nodeps --force glibc-devel-2.12-1.192.el6.x86_64.rpm 576 rpm -ivh --nodeps --force mpfr-2.4.1-6.el6.x86_64.rpm 577 rpm -ivh --nodeps --force ppl-0.10.2-11.el6.x86_64.rpm 578 rpm -ivh --nodeps --force cloog-ppl-0.15.7-1.2.el6.x86_64.rpm 579 rpm -ivh --nodeps --force cpp-4.4.7-17.el6.x86_64.rpm 580 rpm -ivh --nodeps --force gcc-4.4.7-17.el6.x86_64.rpm 581 rpm -ivh --nodeps --force libstdc++-4.4.7-17.el6.x86_64.rpm 582 rpm -ivh --nodeps --force libstdc++-devel-4.4.7-17.el6.x86_64.rpm 583 rpm -ivh --nodeps --force gcc-c++-4.4.7-17.el6.x86_64.rpm 584 pwd585 rpm -ivh --nodeps --force gmp-4.3.1-10.el6.x86_64.rpm 586 rpm -ivh --nodeps --force gmp-*rpm -ivh glibc-common-2.12-1.25.el6.x86_64.rpm689 rpm -ivh glibc-common-2.17-222.el7.x86_64.rpm 690 rpm -ivh kernel-headers-3.10.0-862.el7.x86_64.rpm 691 rpm -ivh libgcc-4.8.5-28.el7.x86_64.rpm 692 rpm -ivh glibc-2.17-222.el7.x86_64.rpm 693 rpm -ivh glibc-2.17-222.el7.i686.rpm 694 rpm -ivh glibc-2.17-222.el7.i686.rpm --nodeps --force695 rpm -ivh libgomp-4.8.5-28.el7.x86_64.rpm 696 rpm -ivh nscd-2.17-222.el7.x86_64.rpm 697 rpm -ivh glibc-headers-2.17-222.el7.x86_64.rpm 698 rpm -ivh glibc-devel-2.17-222.el7.699 rpm -ivh glibc-devel-2.17-222.el7.x86_64.rpm 700 rpm -ivh mpfr-*701 rpm -ivh mpfr-* --force --nodeps702 rpm -ivh cpp-4.8.5-28.el7.x86_64.rpm 703 rpm -ivh cpp-4.8.5-28.el7.x86_64.rpm --force --nodeps704 cd /home/Packages/705 rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm 706 rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm --force --nodeps707 rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm 708 rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm --force --nodeps709 rpm -ivh gcc-4.4.7-17.el6.x86_64.rpm 710 rpm -ivh gcc-4.4.7-17.el6.x86_64.rpm --force --nodeps711 rpm -ivh cpp-4.8.5-28.el6.x86_64.rpm --force --nodeps712 cd /media/iso/Packages/713 rpm -ivh libstdc++-4.8.5-28.el7.x86_64.rpm 714 rpm -ivh libstdc++-devel-4.8.5-28.el7.x86_64.rpm 715 rpm -ivh gcc-c++-4.8.5-28.el7.x86_64.rpm 716 rpm -ivh gcc-c++-4.8.5-28.el7.x86_64.rpm --force --nodepsrpm -ivh glibc-common-2.12-1.25.el6.x86_64.rpm723 rpm -ivh glibc-common-2.12-1.192.el6.x86_64.rpm 724 rpm -ivh glibc-common-2.12-1.192.el6.x86_64.rpm --force --nodeps725 rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm726 rpm -ivh pp727 cd /media/iso/Packages/728 cd /home/Packages/729 rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm --force --nodeps730 rpm -ivh --force --nodeps kernel-headers-2.6.32-642.el6.x86_64.rpm 731 rpm -ivh --force --nodeps libgcc-4.4.7-17.el6.x86_64.rpm 732 rpm -ivh --force --nodeps glibc-2.12-1.192.el6.x86_64.rpm 733 rpm -ivh --force --nodeps libgomp-4.4.7-17.el6.x86_64.rpm 734 rpm -ivh --force --nodeps nscd-2.12-1.192.el6.x86_64.rpm 735 rpm -ivh --force --nodeps glibc-devel-2.12-1.192.el6.x86_64.rpm 736 rpm -ivh --force --nodeps glibc-headers-2.12-1.192.el6.x86_64.rpm 737 rpm -ivh --force --nodeps mpfr-2.4.1-6.el6.x86_64.rpm 738 rpm -ivh --force --nodeps ppl-0.10.2-11.el6.x86_64.rpm 739 rpm -ivh --force --nodeps cloog-ppl-0.15.7-1.2.el6.x86_64.rpm 740 rpm -ivh --force --nodeps cpp-4.4.7-17.el6.x86_64.rpm 741 rpm -ivh --force --nodeps gcc-4.4.7-17.el6.x86_64.rpm 742 rpm -ivh --force --nodeps libstdc++-4.4.7-17.el6.x86_64.rpm 743 rpm -ivh --force --nodeps libstdc++-devel-4.4.7-17.el6.x86_64.rpm 744 rpm -ivh --force --nodeps gcc-c++-4.4.7-17.el6.x86_64.rpm yum install -y binutils 767 cd /media/iso/Packages/768 yum install -y binutils 769 yum install -y binutils-2.27-27.base.el7.x86_64.rpm 770 rpm -ivh --nodeps --force binutils-2.27-27.base.el7.x86_64.rpm 771 cd /home/Packages/772 rpm -ivh --nodeps --force binutils-2.20.51.0.2-5.44.el6.x86_64.rpm 773 rpm -ivh --nodeps --force compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm 774 rpm -ivh --nodeps --force elfutils-libelf-devel-0.164-2.el6.x86_64.rpm 775 rpm -ivh --nodeps --force zlib-devel-1.2.3-29.el6.x86_64.rpm 776 rpm -ivh --nodeps --force make-3.81-23.el6.x86_64.rpm 777 rpm -ivh --nodeps --force libXi-1.7.4-1.el6.x86_64.rpm 778 rpm -ivh --nodeps --force libxcb-1.11-2.el6.x86_64.rpm 779 rpm -ivh --nodeps --force libXt-1.1.4-6.1.el6.x86_64.rpm 780 rpm -ivh --nodeps --force libXau-1.0.6-4.el6.x86_64.rpm 781 rpm -ivh --nodeps --force libX11-1.6.3-2.el6.x86_64.rpm 782 rpm -ivh --nodeps --force libXtst-1.2.2-2.1.el6.x86_64.rpm 783 rpm -ivh --nodeps --force libXext-1.3.3-1.el6.x86_64.rpm 784 rpm -ivh --nodeps --force libaio-devel-0.3.107-10.el6.x86_64.rpm 785 rpm -ivh --nodeps --force libaio-0.3.107-10.el6.786 rpm -ivh --nodeps --force libaio-0.3.107-10.el6.x86_64.rpm