Debian Bug report logs -
#47379
apt-get install could install local package files, too
Reported by: "David H. Silber" <dhs@orbits.com>
Date: Thu, 14 Oct 1999 05:03:01 UTC
Severity: wishlist
Merged with 88616,
254887
Found in versions 0.3.13, 0.5.4, 0.5.0, 0.5.25
Fixed in version 1.1~exp1
Done: Julian Andres Klode <jak@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to "David H. Silber" <dhs@orbits.com>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: apt
Version: 0.3.13
Every once in a while, I want to install a .deb package that is not part
of the Debian distribution. Currently, I install it with dpkg, see what
dependancies show up as unmet, then use apt-get to install the required
packages.
It would be very useful if apt-get would recognize a .deb package name
and deal properly.
For example:
apt-get install jpilot-0.95-1.i386.deb
... would offer to install any missing (or outdated) packages needed by
this package.
Thank You,
David H. Silber
P.S. This would also simplify the installation directions needed for
such ``external'' packages.
--
David H. Silber -- http://www.orbits.com/~dhs/ -- dhs@orbits.com
For custom software, see: http://www.SilberSoft.com/
Palm OS / Linux Documentation: http://www.orbits.com/Palm/
Severity set to `wishlist'.
Request was from Jason Gunthorpe <jgg@ualberta.ca>
to control@bugs.debian.org.
(full text, mbox, link).
Changed Bug title.
Request was from Michael Piefel <piefel@informatik.hu-berlin.de>
to control@bugs.debian.org.
(full text, mbox, link).
Merged 47379 88616.
Request was from Michael Piefel <piefel@informatik.hu-berlin.de>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>, apt@packages.qa.debian.org:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to "Mantas K." <mantas@lvmi.lt>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>, apt@packages.qa.debian.org.
(full text, mbox, link).
Message #16 received at 47379@bugs.debian.org (full text, mbox, reply):
Followup-For: Bug #47379
Followup-For: Bug #88616
Package: apt
Version: 0.5.4
Hi,
I think instalation of local packages trought apt should look like
this:
apt-get install file:/home/install/some_good_package-1.0_i386.deb
apt must read dependancy information of
/home/install/some_good_package-1.0_i386.deb and install this package
and all needed packages from repositories,described in sources.list.
Later this metod can be extendet:
apt-get install http://debian.home.lt/some_good_package-1.0_i386.deb
(apt must download package from
http://debian.home.lt/some_good_package-1.0_i386.deb,
read dependancy information and install this package
and all needed packages from repositories,described in sources.list.)
-- System Information
Debian Release: woody
Architecture: i386
Kernel: Linux Gis2_3 2.4.17 #1 Wed Jan 30 19:38:46 EET 2002 i686
Locale: LANG=lt_LT, LC_CTYPE=lt_LT
Versions of packages apt depends on:
ii libc6 2.2.5-3 GNU C Library: Shared libraries an
ii libstdc++2.10-glibc2.2 1:2.95.4-2 The GNU stdc++ library
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>, apt@packages.qa.debian.org:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to bap@cs.unm.edu:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>, apt@packages.qa.debian.org.
(full text, mbox, link).
Message #21 received at 47379@bugs.debian.org (full text, mbox, reply):
Wow, that was fast! Thanks!
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>, apt@packages.qa.debian.org:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Rolf Leggewie <i.report.all.spamscumbags@expires-2003-01-31.nexgo.de>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>, apt@packages.qa.debian.org.
(full text, mbox, link).
Message #26 received at 47379@bugs.debian.org (full text, mbox, reply):
Hi,
is there a way I can vote for this bug #104323 which has been recorded
for almost 20 months now and still not been fixed? This is a real
problem when trying to install packages remotely i.e. without having
physical access to the CD-ROM. I was about to file my own bug report
,----- [ Bug report ]
|
| From: Rolf Leggewie <i.report.all.spamscumbags@expires-2003-01-31.nexgo.de>
| Subject: apt-get, installation CDs and --download-only
|
| Package: apt
|
| Hi,
|
| I have used apt-cdrom to populate my sources.list with entries for the
| 7-piece Woody CD set dated 18th of July 2002. Now, I'd like to do
|
| "apt-get install --download-only package1 packgeX"
|
| to copy a few debs into the local cache on the hard disk. Above command
| successfully exits with "Download complete and in download only mode".
| But alas, the packages do not show up in /var/cache/apt/archives/ and
| the ensuing command
|
| "apt-get install --no-download package1 packageX"
|
| again requests the CDs :(. Since I do not always have physical access
| to the CD-ROM drive I'd rather not have this happen. I'd appreciate a
| hint on how to receive a notice when this bug has been fixed. Thank
| you.
|
| Regards
|
| Rolf Leggewie
|
`-----
I include it here since it broadens the originally filed bug report in
that --download-only has a bug too when working with CD-ROMs (AFAICT
this might be similar to what is filed as bug #164399.)
My problem is installing packages through telnet or SSH over an ISDN
line on a remote server. What I would like to do is to gather the
needed packages on the hard drive first so the CDs do not have to be
switched in the middle of installation. If the feature request AKA bug
#47379 were to be implemented, this would help, too.
Regards
Rolf Leggewie
--> mail sent to bug 104323, with cc for 164399 and 47379
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Michael Vogt <mvogt@acm.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #31 received at 47379@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
I attached a patch against apt-0.5.14 that makes local installs
possible. It's proof-of-concept for now and has a _ugly_ hack in
it when generating the tagfile for the given debian package.
Nothing that can't be fixed, I just wanted to post it as it is so we
can start discussing how to improve it.
It's very much inspired by how apt-rpm does it. It works for local
.deb files only for now. Apt-rpm has support for build-dep, source,
http and ftp too. We can add this later once the patch is cleaned up.
I don't know if the patch will break the ABI. I add a new
debSinglePkgIndex class in deb/debindexfile.h
Comments are welcome,
Michael
--
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
[deb-local-file-install.diff.gz (application/octet-stream, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #36 received at 47379@bugs.debian.org (full text, mbox, reply):
Some of these bugs are fixed in CVS already, and others are on my todo list
for the near future. I am back from my "vacation", and will try to set
aside some time to do apt work once the CVS repository is restored on
cvs.debian.org. I have verified its contents and sent a message to
debian-admin asking for it to be restored.
--
- mdz
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #41 received at 47379@bugs.debian.org (full text, mbox, reply):
On Mon, Dec 08, 2003 at 12:46:27PM +0100, Michael Vogt wrote:
> I attached a patch against apt-0.5.14 that makes local installs
> possible. It's proof-of-concept for now and has a _ugly_ hack in
> it when generating the tagfile for the given debian package.
> Nothing that can't be fixed, I just wanted to post it as it is so we
> can start discussing how to improve it.
>
> It's very much inspired by how apt-rpm does it. It works for local
> .deb files only for now. Apt-rpm has support for build-dep, source,
> http and ftp too. We can add this later once the patch is cleaned up.
>
> I don't know if the patch will break the ABI. I add a new
> debSinglePkgIndex class in deb/debindexfile.h
Thanks for the patch. If it's going to call out to dpkg, I think it should
definitely use popen or fork/exec rather than system() and a temporary file,
but that's easy to fix.
It does change the ABI by adding new classes, so it won't be going into
0.5.x.
The changes to srcrecords.cc and apt-get.cc seem unrelated; were they
intentional?
--
- mdz
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Michael Vogt <mvogt@acm.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #46 received at 47379@bugs.debian.org (full text, mbox, reply):
On Mon, Jan 26, 2004 at 11:15:39AM -0800, Matt Zimmerman wrote:
> On Mon, Dec 08, 2003 at 12:46:27PM +0100, Michael Vogt wrote:
> > I attached a patch against apt-0.5.14 that makes local installs
> > possible. It's proof-of-concept for now and has a _ugly_ hack in
> > it when generating the tagfile for the given debian package.
> > Nothing that can't be fixed, I just wanted to post it as it is so we
> > can start discussing how to improve it.
> >
> > It's very much inspired by how apt-rpm does it. It works for local
> > .deb files only for now. Apt-rpm has support for build-dep, source,
> > http and ftp too. We can add this later once the patch is cleaned up.
> >
> > I don't know if the patch will break the ABI. I add a new
> > debSinglePkgIndex class in deb/debindexfile.h
>
> Thanks for the patch. If it's going to call out to dpkg, I think it should
> definitely use popen or fork/exec rather than system() and a temporary file,
> but that's easy to fix.
Thanks for your reply.
It really shouldn't call dpkg that way. This was the "_ugly_ hack" I
talked about when I first send in the patch. It was just a
proof-of-concept and the easiest way for me to get the required
information.
This is the relevant part:
+ // create file fd
+ FileFd Pkg(FieldsFile,FileFd::ReadOnly);
+
+ debListParser Parser(&Pkg);
We need a FileFd that contains the needed tags. In what way we obtain
the tags is irrelevant of course. I hope we find a better way than the
above for this :)
> The changes to srcrecords.cc and apt-get.cc seem unrelated; were they
> intentional?
srcrecords.cc is in by accident. The apt-rpm version can do stuff
like:
% apt-get build-dep apt-listchanges-1.49-11104cl.src.rpm
which I didn't tackled.
I'm not entirely sure about apt-get.cc. I think it was needed, but I
can retest it.
thanks,
Michael
--
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Jason Gunthorpe <jgg@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #51 received at 47379@bugs.debian.org (full text, mbox, reply):
On Mon, 26 Jan 2004, Michael Vogt wrote:
> We need a FileFd that contains the needed tags. In what way we obtain
> the tags is irrelevant of course. I hope we find a better way than the
> above for this :)
You need to use the utils in apt-inst that provide raw .deb access in a
way that is compatible with the tag record parser. Read the source to
apt-ftparchive to find out how.. Though I'd rather not have apt-get linked
with apt-utils :|
Jason
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Michael Vogt <mvogt@acm.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #56 received at 47379@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Wed, Jan 28, 2004 at 11:46:39PM -0700, Jason Gunthorpe wrote:
>
> On Mon, 26 Jan 2004, Michael Vogt wrote:
>
> > We need a FileFd that contains the needed tags. In what way we obtain
> > the tags is irrelevant of course. I hope we find a better way than the
> > above for this :)
>
> You need to use the utils in apt-inst that provide raw .deb access in a
> way that is compatible with the tag record parser. Read the source to
> apt-ftparchive to find out how.. Though I'd rather not have apt-get linked
> with apt-utils :|
Thanks for this hints Jason. I attached another patch that does no
longer calls dpkg but uses debDebFile::MemControlExtract Extract("control")
instead.
The patch still has (at least) two problems:
1. It needs to link apt-pkg with apt-inst to get access to the debFile
class.
2. It creates a temporary file $pkgname.records in a insecure way.
The problem with 2) is that the temporary records file is needed in
debSinglePkgIndex::Merge() and debSPTypePkg::CreatePkgParser(). I
don't know how to pass additional information to CreatePkgParser() so
I used a predictable filename for now. This can be solved by creating
a temporary file in each of the two functions.
As for 1) I don't know what to do. We could use the dpkg fork/exec a
approach. Or we could copy-n-paste some code to extract only the
control file from a deb. All solutions are not optimal IMHO.
What do you think about this?
> Jason
Michael
--
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
[deb-local-install-v2.1.diff (text/plain, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #63 received at 47379@bugs.debian.org (full text, mbox, reply):
If we want to implement this feature, the logical way forward is to combine
libapt-pkg and libapt-inst, either by linking them together or combining
them into one library. Jason has said that this is undesirable, though I'm
not clear on the reasons why they were created separately in the first
place.
It _might_ also be possible to implement the needed bits in a separate
command-line program, though I haven't checked whether the interfaces would
support this.
--
- mdz
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to "Chris AtLee" <chris@atlee.ca>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #68 received at 47379@bugs.debian.org (full text, mbox, reply):
Has anybody looked into this recently?
I'd love to see this feature, but not sure if any of the discussion so
far still applies.
Cheers,
Chris
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Michael Vogt <mvo@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #73 received at 47379@bugs.debian.org (full text, mbox, reply):
On Wed, Aug 01, 2007 at 12:26:30PM -0400, Chris AtLee wrote:
> Has anybody looked into this recently?
>
> I'd love to see this feature, but not sure if any of the discussion so
> far still applies.
There is a patch that is quite instrusive. I would currently recommend
using gdebi to install local files. It will use the apt resolver to
get the dependencies right and comes with a cli and gui version.
Cheers,
Michael
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(full text, mbox, link).
Acknowledgement sent to Otavio Salvador <otavio@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
Message #78 received at 47379@bugs.debian.org (full text, mbox, reply):
Michael Vogt <mvo@debian.org> writes:
> On Wed, Aug 01, 2007 at 12:26:30PM -0400, Chris AtLee wrote:
>> Has anybody looked into this recently?
>>
>> I'd love to see this feature, but not sure if any of the discussion so
>> far still applies.
>
> There is a patch that is quite instrusive. I would currently recommend
> using gdebi to install local files. It will use the apt resolver to
> get the dependencies right and comes with a cli and gui version.
In this case wouldn't be better to close this bug? If there're
alternatives for it?
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio@debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
Information stored
:
Bug#47379; Package apt.
(Mon, 22 Dec 2008 19:33:05 GMT) (full text, mbox, link).
Acknowledgement sent
to "Eugene V. Lyubimkin" <jackyf.devel@gmail.com>:
Extra info received and filed, but not forwarded.
(Mon, 22 Dec 2008 19:33:05 GMT) (full text, mbox, link).
Message #83 received at 47379-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Michael, this bug contains your patch, what do you think of its future now?
--
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
Ukrainian C++ developer, Debian Maintainer, APT contributor
[signature.asc (application/pgp-signature, attachment)]
Added indication that bug 47379 blocks 254888,337037
Request was from Daniel Hartwig <mandyke@gmail.com>
to control@bugs.debian.org.
(Mon, 15 Apr 2013 14:06:08 GMT) (full text, mbox, link).
Reply sent
to Julian Andres Klode <jak@debian.org>:
You have taken responsibility.
(Thu, 13 Aug 2015 20:21:13 GMT) (full text, mbox, link).
Notification sent
to "David H. Silber" <dhs@orbits.com>:
Bug acknowledged by developer.
(Thu, 13 Aug 2015 20:21:13 GMT) (full text, mbox, link).
Message #90 received at 47379-done@bugs.debian.org (full text, mbox, reply):
Version: 1.1~exp1
On Fri, Feb 22, 2002 at 05:58:20PM +0100, Mantas K. wrote:
> Followup-For: Bug #47379
> Followup-For: Bug #88616
> Package: apt
> Version: 0.5.4
>
> Hi,
>
> I think instalation of local packages trought apt should look like
> this:
>
> apt-get install file:/home/install/some_good_package-1.0_i386.deb
This works in experimental, with a path.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
- If you don't I might ignore you.
Reply sent
to Julian Andres Klode <jak@debian.org>:
You have taken responsibility.
(Thu, 13 Aug 2015 20:21:13 GMT) (full text, mbox, link).
Notification sent
to Yann Dirson <dirson@debian.org>:
Bug acknowledged by developer.
(Thu, 13 Aug 2015 20:21:13 GMT) (full text, mbox, link).
Reply sent
to Julian Andres Klode <jak@debian.org>:
You have taken responsibility.
(Thu, 13 Aug 2015 20:21:14 GMT) (full text, mbox, link).
Notification sent
to Cesar Martinez Izquierdo <listas@ono.com>:
Bug acknowledged by developer.
(Thu, 13 Aug 2015 20:21:14 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#47379; Package apt.
(Mon, 26 Sep 2016 16:15:02 GMT) (full text, mbox, link).
Acknowledgement sent
to "Winter, Barbara" <barbara.winter@mountsinai.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(Mon, 26 Sep 2016 16:15:02 GMT) (full text, mbox, link).
Message #103 received at 47379@bugs.debian.org (full text, mbox, reply):
Your e-mail address has been chosen for a fund donation sponsored by Mrs. Lisa N. Quam, winner of the Mega Millions Jackpot (2014), Contact Mrs. Lisa N. Quam directly via e-mail for more verification. lisa_quam@rogers.com<mailto:lisa_quam@rogers.com>
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 09 Jul 2017 07:25:33 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Dec 6 16:07:12 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.