Bug#100406: apt-get: should allow install's and remove's on same command-line
On Sun, Jun 10, 2001 at 05:45:29PM +0200, Wichert Akkerman wrote:
> Previously Yann Dirson wrote:
> > It seems I have to use "dpkg -r", and then "apt-get -f" to have things
> > done. I guess such a thing should be possible to fix within apt
> > itself, and probably it can't be done without allowing several
> > commands on the same line.
> You mean something like this:
> apt-get install installme removeme-
> Which is nicely documented in the apt-get(8) manpage.
Ah, did not know this one. It's documented, but not in the synopsis,
which is where I looked to see whether the syntax made the thing
Just to be sure (can't check any more without reverting to old state,
but you can surely tell), the following would have worked:
# apt-get -f dselect-upgrade libgdbmg1-dev-
That's it ?
Hm, on the catastrophic side (yes, just see "die hard" on tv :), as
"-" and "+" are valid chars in a package name, what happens with
packages with names like, say, $(grep "Package: .*+$"
/var/lib/dpkg/available) ? This seems to rely on the fact that noone
will provide packages with the same name modulo "+" ? Eg, there is a
"gnotepad+" right now, but there used to be "gnotepad" in the past
Yann Dirson <firstname.lastname@example.org> | Why make M$-Bill richer & richer ?
debian-email: <email@example.com> | Support Debian GNU/Linux:
| Cheaper, more Powerful, more Stable !
http://ydirson.free.fr/ | Check <http://www.debian.org/>