LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Proxy + Yum (https://www.linuxquestions.org/questions/fedora-35/proxy-yum-125114/)

beatlelane 12-11-2003 10:48 PM

Proxy + Yum
 
Hi guys!

I need to run yum using a proxy, read the manual and searched the internet. and got this instruction.

"If you would like to use a proxy with yum you can simply set a
shell environment variable of http_proxy. Set it to the url for
your proxy. Ex: http://your_proxy:port/"

the problem is, where should i put the proxy setting or how do a set a shell environment variable?

Any help will be appreciated..THANK YOU!

beatlelane 12-12-2003 02:32 AM

ok!:D

..tried this "$ export http_proxy="http://myproxy.com:8080/" but still no luck.

anyone please.!?

:( :D

ugob 12-12-2003 05:51 AM

You have to set it before you export it...

From yum' man page:

Proxy configuration
If you would like to use a proxy with yum you can simply set a
shell environment variable of http_proxy. Set it to the url for
your proxy. Ex: "http://your_proxy:port/"

beatlelane 12-14-2003 08:18 PM

Quote:

Originally posted by ugob
You have to set it before you export it...

ok!:D

well, still a newbie and never had experience on bash.

could you pls..um...would you mind?:D..just give me the proper syntacs?

THANK YOU VERY MUCH SIR!

beatlelane 12-14-2003 09:27 PM

yehaaa!...problem solved!

here's how, at the prompt.

$set "http://myproxy.mydomain:8080/"
$export proxy_http="http://myproxy.mydomain:8080/"

BIG thanks for ugop! ;)

ugob 12-14-2003 10:18 PM

There you go... :)

No problem :)

beatlelane 12-17-2003 12:59 AM

Quote:

Originally posted by ugob
There you go... :)

No problem :)

ok!:) but now,...i want it to be permanent! :D

the problem is i cant find information on the net...more on PATH etc.

i wish my problem will be solved before christmas...so i could fresh start the next project next year.

THANKS PEOPLE!:D

ugob 12-17-2003 01:04 AM

easy, you want to make it permanent for one user or for all users?

for all? Add your set and export to /etc/profile

for a user only?

same thing to ~/.bash_profile

beatlelane 12-17-2003 02:22 AM

Quote:

Originally posted by ugob
easy, you want to make it permanent for one user or for all users?

for all? Add your set and export to /etc/profile

for a user only?

same thing to ~/.bash_profile

*again my savior:)*

surely, will try this one soon i finished reinstalling the system. :( well,i did something that newbie should not do..i tried to acces my XP Hard Disk as slave, edit my grub configuration and insert something like this i got from the internet:

title WinXP
unhide (hd1,0)

and whoola!!!...everything is gone. :D :( :o..i think would be better if i attend a training on linux, at least a basic course...hihihi.

be back soon people...thanks again ugob!

ugob 12-17-2003 08:25 AM

don't reinstall, just boot in rescue mode, using the cd, or boot from the floppy you've created at install. You did that right?

Then you edit your grub.conf, reboot.


All times are GMT -5. The time now is 09:57 AM.