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



"Mumia W." <mumia.w.18.spam+nospam@xxxxxxxxxxxxx> writes:

The man-page for dpkg suggests that Michael's method should have
worked:

dpkg --set-selections
Set package selections using file read from stdin.

Notice that additional parameters are not required, and the input
comes from stdin.

I was talking about "dpkg --get-selections", not "dpkg
--set-selections".

To be more explicit, "3dchess" is currently purged from my system.
Now, watch and be amazed:

# dpkg --get-selections | egrep 3dchess
# dpkg --get-selections 3dchess
3dchess purge
# echo '3dchess install' | dpkg --set-selections
# dpkg --get-selections | egrep 3dchess
# dpkg --get-selections 3dchess
3dchess install
#

You'll note that, even after "3dchess" has been selected for
installation, it will not be listed by:

dpkg --get-selections

because that doesn't list purged packages, even ones ready to be
installed. Instead, you must instead explicitly write:

dpkg --get-selections 3dchess

to verify that the selection status of this package has changed.

--
Kevin <buhr+debian@xxxxxxxxxxx>


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



Relevant Pages

  • Transfer Package Selections with "dpkg --set-selections"
    ... I have a question about the use of dpkg to transfer package selections ... Management FAQ. ...
    (Debian-User)
  • Re: Debian
    ... Reading package lists... ... Reading state information... ... tools do not directly or indirectly invoke dpkg. ... Selecting previously deselected package libdvdnav4. ...
    (Ubuntu)
  • Re: dselect refusing to upgrade packages in unstable?
    ... dpkg: dependency problems prevent configuration of libxt-dev: ... dpkg: dependency problems prevent configuration of libice-dev: ... Package libice6 is not installed. ...
    (Debian-User)
  • Re: KDE 3.3.2 fails re-install [SOLVED]
    ... make sure you have all the kde components uninstalled: ... anything to do with KDE, but when I looked at it with dpkg, I found 28 ... in package kdewallpapers ... Package kdebase-data is not installed. ...
    (Debian-User)
  • Re: KDE 3.3.2 fails re-install
    ... dpkg: error processing ... in package kdewallpapers ... dpkg: dependency problems prevent configuration of kdebase: ... dpkg: dependency problems prevent configuration of kde-core: ...
    (Debian-User)