Skip to content

Instantly share code, notes, and snippets.

@sn0rk64
Last active May 13, 2019 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sn0rk64/086a7d23c56ca310adbe9c7e0309ab8a to your computer and use it in GitHub Desktop.
Save sn0rk64/086a7d23c56ca310adbe9c7e0309ab8a to your computer and use it in GitHub Desktop.
centos installing handy packages

NGINX

Create or edit file.

sudo vi /etc/yum.repos.d/nginx.repo

Append follow to the file.

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/rhel/7/$basearch/
gpgcheck=0
enabled=1

Install nginx.

sudo yum install nginx

CURL

Create or edit file.

sudo vi /etc/yum.repos.d/city-fan.repo

Append follow to the file.

[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0

Install curl

sudo yum install curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment