LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to user wget and yum (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-user-wget-and-yum-739653/)

vinaytp 07-13-2009 12:07 AM

Not able to user wget and yum
 
hi all.......

I am working with fedora 9 ..My system is connected to the internet through proxy server, so i am not able to use the commands like wget and yum is there any way to make these command work having proxy server connected to my system....

i have tried using following command

http_proxy=ip_of_proxy:8080 wget http://www.kernel.org/pub/linux/kern...ch-2.6.29.6.gz

output is

Proxy request sent, awaiting response... 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

2009-07-14 10:44:27 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.).

It will not ask for password or username...In which file should i specify username and password to proxy....

can anyone please suggest me regarding this issue.........
Thanks in advance ............

routers 07-13-2009 05:44 AM

/can anyone please suggest me regarding this issue.........

yes..



Code:

http_proxy=http://username:password@ip_of_proxy:8080 wget http://www.kernel.org/pub/linux/kern...ch-2.6.29.6.gz

colucix 07-13-2009 05:51 AM

I don't know if yum is able to read the http_proxy environment variable, as wget does. Eventually you can try to edit /etc/yum.conf and add the following in the [main] section:
Code:

proxy=http://proxy-address:proxy-port-number
proxy_username=username
proxy_password=password


vinaytp 07-14-2009 01:17 AM

Quote:

Originally Posted by routers (Post 3605898)
/can anyone please suggest me regarding this issue.........

yes..



Code:

http_proxy=http://username:password@ip_of_proxy:8080 wget http://www.kernel.org/pub/linux/kern...ch-2.6.29.6.gz

The problem here is my password has an @ symbol and it is conflicting with @ip_of_proxy

How can we solve this issue??

routers 07-14-2009 01:42 AM

Code:

The problem here is my password has an @ symbol and it is conflicting with @ip_of_proxy
hehe, i have this problem also before god damn , i have to change the password and i will never use @ in password, because i dont know other way to settle it


btw you can use wget direct but you need to create .wgetrc in your $HOME
so wget can make direct to proxy but still there the problem with your p@ssword which you need to settle first or maybe some others from here know how to solve it , i also need to know :)

colucix 07-14-2009 01:54 AM

What if you set the environment variable without user and password and use wget options to provide authentication?
Code:

$ export http_proxy=http://proxy-address:proxy-port-number
$ wget --proxy-user=username --proxy-password=password http://download-url

In any case, I agree with routers: ask the proxy administrators to change your password: you will avoid some problems in the future and a lot of headache. ;)


All times are GMT -5. The time now is 03:24 AM.