DAtum

Entrepreneurship, Software and the business of technology

apt-get through a http proxy

God – this bugged me no end at my workplace. Especially the interplay of sudo, loading environment variables, etc. with http proxy.

Rule of thumb is – sudo (if present) should be the first command, http_proxy (if present) should be the second and then the rest of the actual command

Effectively, it is something like

sudo http_proxy=http://1.1.1.1:80 apt-get update

 

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.