Weiteres System mit "user_pkglist.txt" installieren

Ich würde gerne ein weiteres System in meinem Haushalt von Linux Mint auf EndeavourOS umstellen.

Dabei würde ich gerne von der “user_pkglist.txt” gebrauch machen.
Das System sollte weitgehend dem 1. System gleich sein, bis auf die ganzen Gaming Sachen, welche nicht benötigt werden.

Meine Frage ist jetzt, kann ich mir vom 1. System eine Liste ausgeben lassen, welche Pakete (Programme) im Verhältnis zur normalen EndeavourOS Installation installiert sind und nicht aus dem AUR stammen?

pacman -Qenq

Um Pakete aufzulisten, die installiert sind, aber nicht zum AUR gehören:

$ pacman -Q

Je nachdem dürfte es schwierig werden, die Pakete zu finden, die nicht zur EnOS- (Basis- & Desktopumgebungs-) Installation gehören.

What does it show explicitely?

Native packages installed explicitly.

1 Like

More information in

man pacman
firefox https://wiki.archlinux.org/title/Pacman/Rosetta

Also, to see packages installed from a particular repo, e.g. endeavouros:

pacman -Sl endeavouros
1 Like

Du kannst die Ausgabe in eine Datei schreiben und die Datei mit einem USB-Stick auf ein anderes Gerät kopieren.

pacman -Qenq > my-package-list
1 Like

Thank you!

But then I get 233 Packages which are also from the normal EndeavourOS install, like “yay”

Isn’t there a way to filter that?

German:
Ich bekomme dann aber 233 Pakete, auch welche die von der normalen EndeavourOS Installation stammen, wie z.B. “yay”

Gibt es keine Möglichkeit das zu filtern?

Yes. You can use pacman -Sl endeavouros and grep the result with pacman -Qenq. See
man grep
for more details.

yay -S paclist
paclist endeavouros :wink:

1 Like

As an example, these commans will show a list of installed native Arch packages (EndeavourOS packages filtered out):

LANG=C pacman -Sl endeavouros | grep "\[installed" | awk '{print $2}' > /tmp/eos
pacman -Qenq | grep -v -f /tmp/eos > /tmp/my-package-list

assuming the [endeavouros] repo is the only official non-Arch repo.

If you don’t want to filter EndeavourOS out packages, then the command would be:

pacman -Qenq > /tmp/my-package-list

The result will be in file /tmp/my-package-list.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.