Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 7637  / 3 Years ago, thu, august 5, 2021, 11:16:00

To uninstall a package (Ex: tor) installed from repository one should use



sudo apt-get remove tor


I did this but dpkg -l | grep tor shown something against the package. Next I try



sudo apt-get purge tor


But when I check dpkg -l | grep tor I got,



reza@reza-N43JM:/$ dpkg -l tor    
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
un tor <none> (no description available)


I think when I uninstall any package I should not get anything in dpkg -l list. Is it true? Or apt-get remove or purge does another work but not uninstall?


More From » apt

 Answers
1

Note the first two letters of the output of dpkg -l tor which says un



u: Unknown (an unknown state)
n: Not- The package is not currently installed


sometimes dpkg keeps such entries for references. To remove those problematic entries, run in terminal,



sudo dpkg --clear-avail


From man dpkg



--clear-avail
Erase the existing information about what packages are
available.

[#26305] Friday, August 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fatuatexen

Total Points: 451
Total Questions: 107
Total Answers: 110

Location: Trinidad and Tobago
Member since Thu, Apr 27, 2023
1 Year ago
fatuatexen questions
;