Skip to content

u/mdaffin

In this archive from Jan 2018 to Jun 2023

3
posts
1k
comments
0
media
5.7k
score

Top posts

Top comments

I was using both pip and pacman to clean some Python packages.

Never use pip as root. It will install things to the same place as pacman and mess up your python install. Pacman does a great job at tracking what files it crated when you install a package through it and can clean those up by removing the package. But pip does not care if a file already exists or not and will happily stamp over existing files on your system including any packages installed by pacman.

Instead you should use a venv, docker or just install packages as your user with the --user flag to tell it to install things to your home directory and not the system one.

Though some applications do create things at runtime that may need to be cleaned up manually even with pacman as pacman only tracks files created at install time.

Though some commands that you might find helpful: pacman -Qo <file> will tell you what if any package owns a given file. Which you can use to tell if you have an orphaned file or not. pacman -Qdtq will list any package that is installed as a dep but no longer required. And pacman -Rsunc $(pacman -Qdtq) will remove them and anything they depend on. pacman -Sc will clear out older packages from the package caches.

You probably also want to look out for *.pacnew files in /etc which contain newer configs than what you might have locally if you have changed any of them manually and upstream have also changed them.

Otherwise it can depends a lot on what applications you use - like docker has its own set of commands for clearing up data it uses.

124 points

It is not that you shouldn't use grub, it is that you don't need to use grub. With UEFI you can have multiple bootloaders installed on the EFI partition and choose which to boot on startup. Unlike on MBR where you only have a single bootloader. Thus grub (which started as a MBR bootloader) needed to handle booting multiple OSs and a lot more configurations. With most UEFI bootloaders they only need to support a single OS so you can use the native Windows bootloader and a native Linux bootloader side by side. Then use the firmwares one time selection menu to pick which one to boot (or use advanced features of UEFI like changing which OS to next boot into allowing you to directly boot into other bootloaders - see efibootmgr --bootnext option).

This makes systemd-boot and other new EFI only boot managers simpler and require less configuration and can be faster too boot. But the speed difference is negligible unless you are really trying to optimism boot speed.

But grub is more feature-full so works in more situations than other boot managers. It requires a much more complex configuration file but that is abstracted behind tools that can generate the config for you so is not a issue practically.

Both work, neither has major issue for the majority of use cases. Use which ever one you prefer. Personally I have had no issues with systemd-boot where I used to have a load of issues with grub. But this was a long time ago and mostly on MBR systems where you have to use grub and the early days of UEFI. I have no real need for the extra features of grub so have not really looked at it in recent times where I expect it to have far fewer issues.

101 points

Would it still be Arch Linux afterwards?

You are verging on the Ship of Theseus thought experiment here. There is no good answer to it, just makes you think about things.

There is no good definition for what makes a distro a distro. Everyone has a slightly different definition and in practical terms these are good enough to tell Arch from Manjaro or Debian from Ubuntu. But if you were to start replacing parts of one with the other there is no hard line to tell them apart.

If you want to get even more existential about things watch this - the roughly same basic logic/reasoning applies to distros.

97 points

Don't follow random youtube tutorials for Arch, they are very opinionated generally not for your hardware and usually very outdated. Instead follow the offical install guide and for macs the wiki entry on macs.

After reading the above you should be able to boot the installer mount the partitions and continue to configure anything you missed, in particular, look at setting up the bootloader correctly as described on the wiki entry for the mac.

95 points

Arch is not designed as a space-saving distro. You will not match Ubuntu's performance in that regard without a lot of manual work.

  • Dev files are not split out of package (ie no -dev packages)
  • Docs are not split out of packages (ie no -doc packages)
  • Pacman has a lot of dependencies on coreutils like bash and python

All of these will bloat the system, but since it is not a huge issue outside containers no one really cares. Ubuntu and docker have put a lot of effort into the Ubuntu image to strip it right back to the bare minimum. Arch will not likely ever do this when distros like Alpine exist that do a far better job (2MB image base image).

92 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.