Setup Proxy for yum update
2024-7-24|2024-9-25
Xiaochun
type
status
date
slug
summary
tags
category
icon
password
For some well-known reason, the internet connection will be intercepted up by a evil gov. as a software developer in this country, I need a stable connection all the time when I’m surf the internet.
This evening when I was doing
yum update
on my Centos personal home server, I found I have the internet connection issue again. For quite some time, I’ve been using Cloudflare Warp as a VPN, but recently this service became unavailable, I cannot connect to the service, I believe China gov. banned all the IPs of Cloudflare Warp, I could not even do a yum update
on my centos.I need to find another way do make my centos connect to the world again, then I did a little research and found out it’s actually very easy to do this, to make
yum update
run with a http proxy, I just have to add this line to /etc/yum.conf
where
192.168.2.5
is my laptop’s IP, it is running v2rayN as a proxy on port 10809
.The entire
/etc/yum.conf
is:If I don’t need this proxy anymore, I can comment out the proxy line with a leading
#
.For docker
NPM
Power shell
May the tyranny go to an end soon.
Loading...
eBook Wordwise was released for English learners