更新源(Must be the 1st thing!!)

  1. 备份
  2. 更新
  3. 就是把服务器的包信息下载到本地电脑缓存起来,makecache建立一个缓存以后用install时就在缓存中搜索,提高了速度
  4. 配合yum -C search xxx使用
  5. 不用上网检索就能查找软件信息
  6. yum clean all
  7. 需要定期清理缓存
    1. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
    2. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    3. yum makecache

    安装cmake

    解压CMake包 ```cpp tar -zxvf cmake-xxxx-rc1.tar.gz
  1. 建立连接
  2. ```cpp
  3. ln -s /usr/cmake-2.8.12.2-Linux-i386/bin/

安装vscode

We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository:

  1. sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
  2. sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

Then update the package cache and install the package using

  1. yum check-update
  2. sudo yum install code