Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to change proxy settings of Synaptic package manager from terminal. I see that editing /etc/apt/apt.conf file does not work, i.e., even if I change proxy settings here, or anywhere, Synaptic Package manager won't use it.

Basically, I dont want to go everytime inside the settings of SPM to change the proxy. I want to make a small script which will do this job.

Does anyone know in which file are the proxy credentials of Synaptic Package Manager (SPM) is stored?

share|improve this question
    
Other method would be Open synaptic as root , by gksu synaptic and set the proxy setting . Then try running it as normal , and see if it has retained the settings. –  tijybba Jul 14 '12 at 11:08
add comment

1 Answer

up vote 1 down vote accepted

It's stored in the /root/.synaptic/synaptic.conf file, you can see an example in the following script

http://ubuntuone.com/4PXwbNWmNj5kK9AUkEb9fF

Have fun :)

share|improve this answer
    
Wow, exactly the thing I was looking for. Take a bow man, you are just awesome :) –  Rushi Agrawal Jul 17 '12 at 17:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.