更新源(Must be the 1st thing!!)
- 备份
- 更新
- 就是把服务器的包信息下载到本地电脑缓存起来,makecache建立一个缓存以后用install时就在缓存中搜索,提高了速度
- 配合yum -C search xxx使用
- 不用上网检索就能查找软件信息
- yum clean all
- 需要定期清理缓存
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bakwget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum makecache
安装cmake
解压CMake包 ```cpp tar -zxvf cmake-xxxx-rc1.tar.gz
建立连接```cppln -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:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.ascsudo 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
yum check-updatesudo yum install code
