Install Software In Centos

General Command

rpm

rpm -ivh 包全名
选项:
    -i(install)    安装
    -v(verbose)    显示详细信息
    -h(hash)       显示进度
    --nodeps       不检测依赖性

G++ & GCC

$ sudo yum -y install gcc-c++

GIT

$ sudo dnf install -y git

GO

Download

Address
在这里插入图片描述

Config

  1. Extract and copy it to /usr/local/go
[wilson@localhost go]$ pwd
/usr/local/go
  1. And you just need to link to the bin directory
[wilson@localhost go]$ sudo ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt
[wilson@localhost go]$ sudo ln -s /usr/local/go/bin/go /usr/local/bin/go
  1. Setting
$ go env -w GO111MODULE=on
$ go env -w GOPATH="/home/wilson/GoPath"
$ go env -w GOPROXY=https://goproxy.cn,direct
$ go env -w GOSUMDB=off

Side bar

$ sudo dnf install -y gnome-tweaks
$ sudo dnf install -y gnome-shell-extension-dash-to-dock.noarch

Google Chrome

$ sudo yum install libappindicator-gtk3
$ sudo yum install liberation-fonts
$ sudo yum install lsb

WPS

Download

https://linux.wps.cn/
在这里插入图片描述

Install

$ sudo rpm -ivh wps-office-11.1.0.8865-1.x86_64.rpm

VSCode

Install the key and the repository

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
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'

Update the package cache and install the package

  1. Try to install code. However, failed to install.
sudo dnf check-update
sudo dnf install code

Tips:
Cannot download code-1.40.0-1573064644.el7.x86_64.rpm: All mirrors were tried

  1. Clean packages and try again. Failed to install.
dnf clean packages
sudo dnf check-update
sudo dnf install code

Tips:
[FAILED] code-1.40.0-1573064644.el7.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success

Download vscode package

  1. Download

choose .rpm 64 bit
在这里插入图片描述
2. Install but show error

[wilson@localhost Software]$ rpm -ivh code-1.40.0-1573064644.el7.x86_64.rpm 
error: Failed dependencies:
	libXss.so.1()(64bit) is needed by code-1.40.0-1573064644.el7.x86_64
  1. Install dependencies
[wilson@localhost Software]$ sudo yum install libXScrnSaver*
  1. Install again and finish
[wilson@localhost Software]$ sudo rpm -ivh code-1.40.0-1573064644.el7.x86_64.rpm 
[sudo] password for wilson: 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:code-1.40.0-1573064644.el7       ################################# [100%]
发布了131 篇原创文章 · 获赞 81 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/wei242425445/article/details/102967632
今日推荐