2008年5月9日 星期五

不易使用的apt source.list

用apt-get來update or install 是很方便,但一但萬一有mirror site有問題時就另人頭大了
每次用來update source.list就花我一兩小時…因為我不熟^^,和我的mandrade的urpm一樣…
我也不熟它們的機制。


看一下裡面的檔案架構大概是這樣
http://ubuntu-archive.patan.com.ar/

[   ]Archive-Update-in-Progress-leningradskaya.canonical.com05-May-2008 11:55 1
[   ]Archive-Update-in-Progress-lithium.canonical.com03-May-2008 23:57 1
[   ]Archive-Update-in-Progress-prat.canonical.com04-May-2008 19:57 1
[DIR]dists/06-May-2008 20:29 -
[DIR]indices/09-May-2008 04:20 -
[   ]ls-lR.gz09-May-2008 03:45 4.9M
[DIR]pool/14-Jan-2008 19:05 -
[DIR]project/13-Feb-2008 11:39 -

sources.list:
deb http://ubuntu-archive.patan.com.ar edgy main


root@GroupCVS:/tmp# apt-get update -o Dir::Etc::SourceList=/tmp/sources.list
Get:1 http://ubuntu-archive.patan.com.ar edgy Release.gpg [191B]
Get:2 http://ubuntu-archive.patan.com.ar edgy Release [34.7kB]
Get:3 http://ubuntu-archive.patan.com.ar edgy/main Packages [940kB]
Fetched 975kB in 5m25s (2999B/s)
Reading package lists... Done

***********************************
Next, we just involved "apt-get inatll", to install packages.
option -o to specify which source.list .
#root@GroupCVS:/var/lib/apt/lists# apt-get install subversion \
-o Dir::Etc::SourceList=/tmp/sources.list
Reading package lists... Done
Building dependency tree... Done

沒有留言: