You are not logged in.
Pages: 1
Topic closed
How can I get a list of installed packages grouped by core, test community etc.
I want to create a text file of all the packages which are there in my system and use it as a reference for re-installation.
Also is there is a way to find the minimal list of packages to be installed over the core packages, that would be awesome.
So in shot the requirement is core install+ minimal list of packages which will pull all the dependency to install all the packages which are in my system.
thank you
Acer Aspire V5-573P Antergos KDE
Offline
This might help:
$ #To list all packages on your system:
$ pacman -Q
$ #To list all packages you've explicitly installed that are not required by another package
$ pacman -Qet
$ #To list all packages that are not required by another package
$ pacman -Qt
To get a list of installed packages grouped by repo would be a bit more work... something like this should work, though it's not too efficient
#!/bin/bash
rm /tmp/repo-pkgs.txt /tmp/local-pkgs.txt /tmp/local-pkgs-sorted.txt
pacman -Ss | grep -v "^ " | cut -f1 -d' ' | sort > /tmp/repo-pkgs.txt
pacman -Q | cut -f1 -d' ' | sort > /tmp/local-pkgs.txt
for pkg in $(cat /tmp/local-pkgs.txt); do
grep ".*/$pkg\$" /tmp/repo-pkgs.txt >> /tmp/local-pkgs-sorted.txt
done
cat /tmp/local-pkgs-sorted.txt | sort
Last edited by Cerebral (2008-02-25 16:42:47)
Offline
Thanks cerebral,
The 2nd part is what I wanted.
Now how will I get the minimal list of packages which are not in core which if I install over the core packages I will pull all the packages which I have currently...
I mean something like core install + Pacman -Sy package 1 package 2 etc etc
where package 1 , 2 are in community test or in some other repository?
Thanks
Acer Aspire V5-573P Antergos KDE
Offline
is there a better way to do this in pacman 4.0?
Acer Aspire V5-573P Antergos KDE
Offline
pacman -Qeq
should give you a list of all the packages that you have explicitly installed -- it will exclude packages that were installed because they were dependencies.
Last edited by skunktrader (2012-04-17 00:22:46)
Offline
Even if it IS your own thread, don't necro it. And read the man page rather than asking someone else to write a script for you (which is basically what you're asking here).
Closed.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Pages: 1
Topic closed