This is cool! Back to apt-cache, can I specify a release name and query the version number of a specific package?
like apt-cache -t stable show php4 But seems apt-cache does not provide -t. > Thus spake Nathan E Norman ([EMAIL PROTECTED]): > > > $ apt-get source php4/testing > > > > should work, but doesn't. It says "unable to find a source package > > for php4/testing" ... > > > > I'm looking at the pool directory and the source for 4.0.100 (the > > version in testing) is there ... so you could always download it > > manually and use dpkg-source to unpack. However, it seems like > > apt-get should be able to do it ... > > > > After reading the man page a few times, I tried > > > > $ apt-get source php4=3:4.0.100-1 > > > > and it works!! Use "apt-cache show <pkgname>" and look for the > > "Version:" tag to see what you need to put after the = char (make sure > > you're looking at the correct entry; "apt-cache show" shows info for > > all the releases it knows about. In the case of php4 with my > > sources.list this means I have 4 entries (sid, woody, potato, > > security). > > > > This is cool! I learned something today :) > > I think that the -t flag works for getting source as well. Have a look > at the man page. > > -- > Justin R. Miller <[EMAIL PROTECTED]> > View my website at http://codesorcery.net > Please encrypt email using key 0xC9C40C31