and a gap ... <quote src="man apt-get">
       install
                  ...

              A specific version of a package can be selected for
              installation  by following the package name with an
              equals and the version of the  package  to  select.
              This  will  cause  that  version  to be located and
              selected for install. ...

       source source causes apt-get to fetch source packages. ...

              A specific source version can be retrieved by post­
              fixing  the source name with an equals and then the
              version to fetch, similar to the mechanism used for
              the  package  files. ...

</quote> However, more needs to be said about the version to specify.
Crucially, the version as reported by --version or aptitude isn't
enough.

To illustrate, I'll report what happened when I wanted to fetch a
particular version of gcc.  First I asked gcc --version and it said
2.95.4, then I checked in with aptitude, which told me gcc was at
2:2.95.4-12 while gcc-2.95 was at 1:2.95.4-7.  Then I set to at the
command line: <quote src="a bash session">

[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc-2.95=1:2.95.4-7
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc-2.95
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc-2.95=1:2.95.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc-2.95
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc-2.95=2.95.4-7
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc-2.95
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc-2.95=2.95.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc-2.95
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc=2:2.95.4-12
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc=2.95.4-12
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc=2:2.95.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc=2.95.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: Unable to find a source package for gcc
[EMAIL PROTECTED]:/usr/opt/tmp$ apt-get source gcc-2.95
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 15.0MB of source archives.
Get:1 ftp://ftp.no.debian.org woody/main gcc-2.95 2.95.4.ds11-7 (dsc) [1397B]
Get:2 ftp://ftp.no.debian.org woody/main gcc-2.95 2.95.4.ds11-7 (tar) [14.6MB]
Get:3 ftp://ftp.no.debian.org woody/main gcc-2.95 2.95.4.ds11-7 (diff) [404kB] 
Fetched 15.0MB in 1m37s (155kB/s)                                              
dpkg-source: extracting gcc-2.95 in gcc-2.95-2.95.4.ds11

</quote> so I guess maybe I should have been saying
gcc-2.95=2.95.4.ds11-7, but I had no way of knowing about the .ds11
fragment !

Looking in the appropriate /var/lib/apt/lists/ file, I *do* find that
the package data for gcc-2.95 includes the full version number: IWBNI
the apt-get man page said that this is the authoritative place to look
for the version numbers worth giving to install and source.

                Eddy.
--
I am not a sysadmin.
Happy sysadmin day (this Friday) to those who are.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to