remove cupsd completly?
34,356
Solution 1
To list all of your installed packages which match 'cups', run
dpkg -l | grep cups
Then just remove them with apt-get remove
.
Even after that, there could be some cups processes running. A simple reboot will eliminate them (an alternative would be to manually kill them).
Solution 2
3 of the cups packeges are used for non-printing things (like pdf conversion) the other 17 can be removed.
> cat /etc/issue
Ubuntu 15.04 \n \l
> dpkg -l | grep -i cup | grep ii | wc -l
20
> apt-get purge -y cups cups-common && apt-get autoremove -y
...
> dpkg -l | grep -i cup | grep ii | wc -l
3
Related videos on Youtube
Comments
-
jes516 over 1 year
i tried using apt-get remove cupsd but i found traces of it in different locations and it is still running and listening. how can i rip it completely from my machine? is it possible to remove the dpkg for cups?
i am using mint 17
Linux user-virtual-machine 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux
virtual-machine # netstat -an | more unix 2 [ ACC ] STREAM LISTENING 15350 /var/run/cups/cups.sock virtual-machine # netstat -tulpn tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2711/cupsd tcp6 0 0 ::1:631 :::* LISTEN 2711/cupsd # find / -name cups /run/cups /etc/ufw/applications.d/cups /etc/init.d/cups /etc/default/cups /etc/cups /usr/lib/cups /usr/share/doc/cups /usr/share/linuxmint/common/artwork/cups /usr/share/doc-base/cups /usr/share/cups /var/spool/cups /var/lib/doc-base/omf/cups /var/lib/doc-base/documents/cups /var/log/cups /var/cache/cups # apt-cache pkgnames cups cups-driver-gutenprint cups-core-drivers cups-pdf cups-bsd cups cups-common cups-pk-helper cups-backend-bjnp cups-filters cups-server-common cups-dbg cups-tea4cups cups-ppdc cups-browsed cups-filters-core-drivers cups-daemon cups-client
-
wurtel over 9 yearsSome progams link with the libcups2 library, so you probably can't remove all traces of cups from your system. Removing the
cups
package will remove the clients and the daemon though. -
jes516 over 9 yearswhen you say
cups package
do you mean these: # dpkg -l | grep cupsii cups-bsd, ii cups-client, ii cups-common, ii cups-core-drivers, ii cups-daemon, ii cups-filters, ii cups-filters-core-drivers, ii cups-pk-helper, ii cups-ppdc, ii cups-server-common
-
thiagowfx over 9 yearsyes, these were what I meant. cups-daemon looks like the most promising one to remove
-
jes516 over 9 yearsi should of stopped after the cups-daemon. removing the daemon package killed the port and it stopped listening aswell. thank you