37

I noticed while updating my system just how many packages I have installed that I don't recognize.

I tend to think that minimalism is better for security, so I'd like to remove any packages that I'm not using, but this is a bit of a scary task.

Does anybody have a safe method for reviewing and purging unused or bloat packages while obviously making sure not to accidentally remove important dependencies?

I'm on arch btw.

you are viewing a single comment's thread
view the rest of the comments
[-] cravl@slrpnk.net 8 points 1 week ago

For anyone reading this on a Debian-based system, you can get a good start without risking removing anything important like this:

  1. Run apt-mark showmanual, and copy any package names you don't think you need into a list.
  2. Run apt-mark auto <pkg1> <pkg2> ...
  3. Run apt autoremove
[-] pathos@lemmy.ml 0 points 6 days ago

Sorry, just to clarify, <pkg1> etc. will be the ones deleted or not deleted?

[-] greywolf0x1@lemmy.ml 4 points 6 days ago

Those will be deleted as they were picked with the second command

load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 03 May 2025
37 points (93.0% liked)

Linux

54073 readers
760 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS