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

Re: apt-get source problem



Thus spake Nathan E Norman (nnorman@micromuse.com):

> $ 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 <incanus@codesorcery.net>
View my website at http://codesorcery.net
Please encrypt email using key 0xC9C40C31

Attachment: pgpnfiOZpJmP5.pgp
Description: PGP signature


Reply to: