Results 1 to 6 of 6

Thread: how do I update the output of dpkg -l?

  1. #1
    Member registered user
    Join Date
    Sep 2003
    Posts
    31

    how do I update the output of dpkg -l?

    I have made quite a few modifications to my Knoppix Hard Drive install, yet dpkg -l still lists packages that I know I removed
    (I try apt-get remove and it tells me the package is already gone), how do I update the output of dpkg -l to reflect the removed packages?

    note: dpkg -l is the same as dpkg --list

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    I don't know the answer to your question but I've noticed that when I use "apt-get --purge remove package" dpkg doesn't list it anymore. Omitting --purge, dpkg will list the package as removed with an "rc" instead of "ii" at the left. Usually when I know I don't want a package back I use --purge to remove all config files for it as they're not needed anymore.

  3. #3
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Hmm, just tested with COLUMNS=150 dpkg -l|grep -w rc and found one I hadn't purged.
    rc libmagick6.0.1 6.0.0.2-1 Image manipulation library (free version)
    Doing dpkg --purge libmagick6.0.1 removed all configuration files for it and it doesn't show anymore. A bit of work if you have a lot of packages removed but not purged so hopefully someone else knows a handier solution.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    235
    I use a variant of dpkg to list installed files. I use:
    Code:
    dpkg --get-selections
    to output a list of installed files. It tells me if some were removed but not purged; look for any line that says deinstall next to the package name.

    HTH,

    Durand

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: how do I update the output of dpkg -l?

    Quote Originally Posted by andymadigan
    I have made quite a few modifications to my Knoppix Hard Drive install, yet dpkg -l still lists packages that I know I removed
    (I try apt-get remove and it tells me the package is already gone), how do I update the output of dpkg -l to reflect the removed packages?

    note: dpkg -l is the same as dpkg --list
    Have you used dselect update to update the dpkg/dselect database with the changes?

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323

    Re: how do I update the output of dpkg -l?

    Quote Originally Posted by Stephen
    Have you used dselect update to update the dpkg/dselect database with the changes?
    It reads installed files as well?
    I always use it instead of apt-get update but I thought dselect update only reads what's on the web and overwrites apts available list as a bonus.

Similar Threads

  1. S-video Output
    By wham in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 03-31-2005, 02:58 PM
  2. Svideo output
    By wham in forum Hardware & Booting
    Replies: 0
    Last Post: 03-30-2005, 04:55 AM
  3. apt-get / dpkg error: unable to access dpkg status area
    By Nitromethane1261 in forum General Support
    Replies: 2
    Last Post: 09-15-2004, 12:09 AM
  4. odd output from fdisk
    By Eradicator in forum Hardware & Booting
    Replies: 2
    Last Post: 10-28-2003, 04:21 PM
  5. TV Output
    By thaselecta in forum General Support
    Replies: 1
    Last Post: 07-09-2003, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡ picture

🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡

$119.00



Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P picture

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P

$149.99



JUNIPER NETWORKS MIST AI AP63-US HIGH PERFORMANCE OUTDOOR ACCESS POINT - WHITE picture

JUNIPER NETWORKS MIST AI AP63-US HIGH PERFORMANCE OUTDOOR ACCESS POINT - WHITE

$59.99



Juniper Network QFX5100-48S-AFO 48x SFP/SFP+ 6x 40GbE QSFP+ Switch w/ Dual power picture

Juniper Network QFX5100-48S-AFO 48x SFP/SFP+ 6x 40GbE QSFP+ Switch w/ Dual power

$223.20



Juniper SRX320 8-Port Security Services Gateway Appliance w/ AC Adapter picture

Juniper SRX320 8-Port Security Services Gateway Appliance w/ AC Adapter

$59.99



Juniper Networks EX2300 (EX2300-48P) 48 Ports Ethernet Switch picture

Juniper Networks EX2300 (EX2300-48P) 48 Ports Ethernet Switch

$249.99



New Juniper SRX345-SYS-JB-2AC Junos Router Firewall Services Gateway 16GbE SFP picture

New Juniper SRX345-SYS-JB-2AC Junos Router Firewall Services Gateway 16GbE SFP

$560.15



Juniper AP47 Mist Wi-Fi 7 802.11 6GHz 4x4 Wireless Access Point (NEW) picture

Juniper AP47 Mist Wi-Fi 7 802.11 6GHz 4x4 Wireless Access Point (NEW)

$999.99



Juniper QFX5100-48S-3AFI 48-Port SFP+ 6 QSFP+ 2x SFP/RJ-45 Management picture

Juniper QFX5100-48S-3AFI 48-Port SFP+ 6 QSFP+ 2x SFP/RJ-45 Management

$249.97



Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch picture

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch

$79.99