35
submitted 6 months ago by lal309@lemmy.world to c/linux@lemmy.ml

I've been trying Tumbleweed for my gaming needs and so far it seems to be working relatively well. My issue is about removed packages. When I first installed TW, I removed quite a few packages I did not want (KSudoku, LibreOffice, and a few others). It has been a little since I've turned on my PC but yesterday I noticed that KSudoku, LibreOffice, and really all other apps I thought I had uninstalled (sudo zypper remove ) were back on my desktop. I thought "maybe I forgot to uninstalled them in the first place" so I went through and removed all the unwanted stuff again. Since it had been awhile I updated my OS right after uninstalling those packages. After the update (sudo zypper up), I rebooted and immediately noticed that all those packages I had just removed were back (AGAIN). So WTF... am I not removing those unwanted packages "properly"? Why do they keep coming back after updates? How can I prevent this?

you are viewing a single comment's thread
view the rest of the comments
[-] 528491@lemmy.one 1 points 3 months ago* (last edited 3 months ago)

Patterns almost made me skip opensuse, until I locked most of them so they won't annoy me anymore. I start with only selecting some basic patterns in the installer:

apparmor      
base          
documentation 
enhanced_base 
minimal_base  
sw_management 
x86_64_v3 

When installed, I run this in my fresh system:

# save the currently installed patterns in a variable
installedPatterns=$(zypper se --type pattern --installed-only | grep -E "(.*\|){3}" | cut -d'|' -f2 | tail -n+2)

# lock every existing pattern
sudo zypper addlock --type pattern $(zypper search --type pattern | grep -E "(.*\|){3}" | cut -d'|' -f2 | tail -n+2)

# lock every package starting with "yast"
sudo zypper addlock yast*

# unlock the patterns you had installed
sudo zypper removelock --type pattern $installedPatterns

Pro:

  • Only real dependencies get installed when adding packages
  • Nothing re-installs because it belongs to an installed pattern
  • No need for --no-recommends

Con:

  • You have to find out the packages you need yourself

For a minimal gnome install, use these packages (likely some more depending on you setup):

avahi
evince
flatpak
fwupd
gedit
gnome-calculator
gnome-disk-utility
gnome-keyring
gnome-session-wayland
gnome-system-monitor
gnome-terminal
gnome-tweaks
gnome-user-share
gparted
gtk2-metatheme-arc
gtk3-metatheme-arc
gtk4-metatheme-arc
libqt5-qtwayland
loupe
MozillaFirefox
MozillaFirefox-translations-common
pipewire-pulseaudio
qt6-wayland
sane-airscan
simple-scan
tpm2.0-tools
wireplumber-audio
xdg-user-dirs
xdg-user-dirs-gtk

Bonus tip: When removing software, use the -u flag for less bloat being left behind:

 -u, --clean-deps
       Automatically remove dependencies which become unneeded after removal of requested packages.
this post was submitted on 04 May 2024
35 points (100.0% liked)

Linux

48340 readers
399 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 5 years ago
MODERATORS