Install Software In Centos

阅读: 评论:0

Install Software In Centos

Install Software In Centos

文章目录

  • General Command
    • rpm
  • G++ & GCC
  • GIT
  • GO
    • Download
    • Config
  • Side bar
  • Google Chrome
  • WPS
    • Download
    • Install
  • VSCode
    • Install the key and the repository
    • Update the package cache and install the package
    • Download vscode package

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=,direct
$ go env -w GOSUMDB=off

Side bar

$ sudo dnf install -y gnome-tweaks
$ sudo dnf install -arch

Google Chrome

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

WPS

Download

/

Install

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

VSCode

Install the key and the repository

sudo rpm --import .asc
sudo sh -c 'echo -e "[code]nname=Visual Studio Codenbaseurl=nenabled=1ngpgcheck=1ngpgkey=.asc" > /pos.po'

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: 
                          ################################# [100%]
                          ################################# [100%]
Updating / 1:code-1.40.0-1573064644.el7       ################################# [100%]

本文发布于:2024-01-30 04:11:08,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170655907019116.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:Install   Software   Centos
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23