sticks
April 25, 2023, 4:00pm
1
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?
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.
manuel:
pacman -Qenq
What does it show explicitely?
manuel
April 25, 2023, 6:38pm
5
Native packages installed explicitly.
1 Like
manuel
April 25, 2023, 6:39pm
6
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
manuel
April 25, 2023, 6:44pm
7
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
sticks
April 26, 2023, 6:21pm
8
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?
manuel
April 26, 2023, 6:31pm
9
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
1 Like
manuel
April 27, 2023, 10:20am
11
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
system
Closed
May 13, 2023, 10:38am
12
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.