Re: apt-get install pkg and remove pkg on the same line?!
Thanks Colin and Rob
Works Exactly like i want it to.. Thanks!!
Best regards
/smurfd
On Mon, 2003-10-20 at 06:21, Rob Weir wrote:
> On Mon, Oct 20, 2003 at 02:59:59AM +0200, smurfd said
> > Hey there Debian-user list, ive been thinking, (not well enough, as it
> > seems).
> >
> > How does dselect do, when you select/deselect packages to be
> > added/removed ? i mean, can you type yourself, like on one line..
> >
> > apt-get install packages remove packages?
> >
> > Im not meaning
> > apt-get install packages; apt-get remove packages
> >
> > you see, so it would collect all packages in need to be added, and all
> > packages that needs to be removed..
>
> $ apt-get install installme removeme-
On Mon, 2003-10-20 at 02:11, Colin Watson wrote:
> On Mon, Oct 20, 2003 at 02:59:59AM +0200, smurfd wrote:
> > Hey there Debian-user list, ive been thinking, (not well enough, as it
> > seems).
> >
> > How does dselect do, when you select/deselect packages to be
> > added/removed ? i mean, can you type yourself, like on one line..
> >
> > apt-get install packages remove packages?
>
> dselect's apt method uses the 'dselect-upgrade' option to apt, which
> tells apt-get to attempt to resolve the desired package states that
> dselect has put in /var/lib/dpkg/status. This isn't really accessible
> very easily in the way you'd normally use apt-get.
>
> However, here's a quote from the apt-get(8) man page:
>
> install
> install is followed by one or more packages desired for
> installation. Each package is a package name, not a
> fully qualified filename (for instance, in a Debian
> GNU/Linux system, libc6 would be the argument provided,
> not libc6_1.9.6-2.deb). All packages required by the
> package(s) specified for installation will also be
> retrieved and installed. The /etc/apt/sources.list file
> is used to locate the desired packages. If a hyphen is
> appended to the package name (with no intervening
> space), the identified package will be removed if it is
> installed.
>
> So you can say:
>
> apt-get install package1 package2 package3- package4-
>
> Cheers,
>
> --
> Colin Watson [cjwatson@flatline.org.uk]
Reply to: