does the "new apt" smart run with proxies?
Hi, because of some information here in the list I just tried to install this apt-successor called smart (Which I have to do when 10.1 is out!) I'm using 10.0 and found a smart rpm in the suser-guru repository via apt. Besides all other problems, smart only sees my local repository (containing the SuSE 10.0 DVD copied to HD) but no repository on gwdg.de because of connections problems. I'm not allowed to bypass our proxy, so how can I tell smart to use it? apt uses wget and my ~/.wgetrc points to my proxy; so it works Any hints? Andreas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kyek, Andreas, VF-DE wrote:
because of some information here in the list I just tried to install this apt-successor called smart (Which I have to do when 10.1 is out!) I'm using 10.0 and found a smart rpm in the suser-guru repository via apt.
Yep, that's my package.
Besides all other problems, smart only sees my local repository (containing the SuSE 10.0 DVD copied to HD) but no repository on gwdg.de because of connections problems.
Yes, well, that's an issue with gwdg.de, not with smart (but that doesn't really help you) ;) You can also add mirrors in smart. It will autodetect when to switch to a mirror. Mirrors are based on URLs, which means that you can say smart mirror --add \ http://ftp.gwdg.de/pub/linux/suse/apt \ http://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt smart mirror --add \ http://ftp.gwdg.de/pub/linux/suse/apt \ http://ftp4.gwdg.de/pub/linux/suse/apt smart mirror --add \ http://ftp.gwdg.de/pub/linux/suse/apt \ ftp://ftp.gwdg.de/pub/linux/suse/apt (which, BTW, I find an awesome feature, as it works independently of the actual repository backend) You can see the statistics and mirror decision history of smart with smart mirror --show-penalities and reset it with smart mirror --clear-history (also works per mirror) More about "smart mirror": smart mirror --help
I'm not allowed to bypass our proxy, so how can I tell smart to use it? apt uses wget and my ~/.wgetrc points to my proxy; so it works Any hints?
Sure. smart honors the http_proxy and ftp_proxy environment variables, as many other applications do
(curl, libxml2, wget, lynx, w3m, ...).
Hope this helps
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
Hi, On Mon, 24 Oct 2005, Pascal Bleser wrote:
Kyek, Andreas, VF-DE wrote:
because of some information here in the list I just tried to install this apt-successor called smart (Which I have to do when 10.1 is out!) I'm using 10.0 and found a smart rpm in the suser-guru repository via apt.
Yep, that's my package.
Besides all other problems, smart only sees my local repository (containing the SuSE 10.0 DVD copied to HD) but no repository on gwdg.de because of connections problems.
Yes, well, that's an issue with gwdg.de, not with smart (but that doesn't really help you) ;)
No connection problems seen at GWDG the last days. Slowness yes, errors no. Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eberhard Moenkeberg wrote: ...
Besides all other problems, smart only sees my local repository (containing the SuSE 10.0 DVD copied to HD) but no repository on gwdg.de because of connections problems.
Yes, well, that's an issue with gwdg.de, not with smart (but that doesn't really help you) ;)
No connection problems seen at GWDG the last days. Slowness yes, errors no.
Yes, sorry, I should have meant "timeouts" ;)
Smart handles that as well.
I'm not 100% sure the timeout length is configurable in smart, as of now.
There are a few configuration settings that affect the file fetching algorithms in Smart, though:
socket-timeout
max-active-downloads
The maximum number of download retries is currently hardcoded to 30 (see MAXRETRIES in
smart/fetcher.py).
BTW, you can also override the HTTP and FTP proxy in the Smart configuration:
smart --option http_proxy=proxyserv:3128 install ...
If you want to make that option persistent, then use the following commands:
smart config --set http_proxy=proxyserv:3128
smart config --set ftp_proxy=proxyserv:3128
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
participants (3)
-
Eberhard Moenkeberg
-
Kyek, Andreas, VF-DE
-
Pascal Bleser