You are not logged in.

#1 2008-02-25 16:26:10

venky80
Member
Registered: 2007-05-13
Posts: 996

installed packages by group

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


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#2 2008-02-25 16:40:07

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: installed packages by group

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

#3 2008-02-25 16:47:48

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: installed packages by group

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


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#4 2012-04-16 22:06:42

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: installed packages by group

is there a better way to do this in pacman 4.0?


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#5 2012-04-16 23:59:09

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,288

Re: installed packages by group

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

#6 2012-04-17 01:31:33

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,717

Re: installed packages by group

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

Board footer

Powered by FluxBB