[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get source problem



On Wed, Dec 12, 2001 at 11:32:26AM +0800, Patrick Hsieh wrote:
> Hello,
> 
> I've defined stable,testing and unstable URLs in my sources.list file.
> After apt-get update, seems apt-get will only deal with the latest version
> of packages or sources. Is there any way to specify a specific tree(stable,testing,unstable) of a specific package?
> 
> Say, I'd like to get the source of php4 in the Debian stable tree, but 
> I've defind testing and unstable trees in my sources.list, what should I 
> do?

$ 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 :)

Regards,

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:nnorman@micromuse.com   |   -- Patton

Attachment: pgpy5_3mZDW7O.pgp
Description: PGP signature


Reply to: