centos安裝Linux常用庫
背景: centos7
yum install -y gcc gdb strace gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs patch e2fsprogs-devel krb5-devel libidn libidn-devel openldap-devel nss_ldap openldap-clients openldap-servers libevent-devel libevent uuid-devel uuid mysql-devel
yum -y install vim* :安裝vim工具
yum install wget
yum install net-tools
yum whatprovides "*/xhost" : 安裝xhost
yum install zip unzip :安裝zip工具
yum install tigervnc-server:安裝圖形化工具(oracle坑)
安裝圖形介面:
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
startx
解除安裝X Window
yum groupremove 'X Window System' -y
解除安裝GNOME桌面環境
yum groupremove "GNOME Desktop Environment"
解除安裝KDE桌面環境
yum groupremove "KDE (K Desktop Environment)"