Re: Use of dpkg --set-selections is brain-dead?



"Michael S. Peek" <peek@xxxxxxxxxxxx> writes:

I've traced my problem down to the use of 'dpkg --set-selections'
command. As an example, I have a package named tiem-nis-client-cfg
that sets up NIS for generic workstations. If I understand correctly,
I should be able to do the following:

echo "tiem-nis-client-cfg install" | dpkg --set-selections

And then, when I type 'dpkg --get-selections', I should see
"tiem-nis-client-cfg install" one some line in the output.

No, "dpkg --get-selections" without further arguments only lists
packages that are either installed or deinstalled (but still have
their config files on the system), not purged packages or those that
have never been on your system, even if those packages have been
selected for installation. If you run:

dpkg --get-selections tiem-nis-client-cfg

that should show that your new package has been selected for
installation.

--
Kevin <buhr+debian@xxxxxxxxxxx>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
    ... Reading state information... ... Preconfiguring packages ... ... Searching for GRUB installation directory ... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • bothersome Brother package
    ... The following packages will be REMOVED: ... dpkg - warning: while removing hl5150dlpr, ... subprocess post-installation script returned error exit status 127 ... The installation can probably be completed by retrying ...
    (Debian-User)
  • Re: libpango update broke iceape synaptic and more
    ... conclude something is wrong with my installation. ... The apt-listchanges packages is extremely handy to make sure you are not ... installation in the event of bad NEWS. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: FIXED: cant upgrade, reinstall or remove hal
    ... I have reloaded all the packages in limbo without any change. ... dpkg - trying script from the new package instead ... ... I saw the bug but still didn't know how to fix it. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: How to share the apt cache
    ... enough about the behaviour of apt to be sure that this won't bring an ... off instead setting up an installation of 'apt-proxy'. ... same packages from the internet more than once... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)