You are not logged in.

#1 2006-07-19 20:20:41

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

How to obtain a list of all extra packages by name only

Please advise how to obtain a list of all extra packages by name only capable of being included in a file.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#2 2006-07-19 23:25:39

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How to obtain a list of all extra packages by name only

Please explain "extra". From extra repo? From AUR? Packages you have explicitly installed that are not required by other packages? Packages that were not explicitly installed and are not required by other packages?

Offline

#3 2006-07-19 23:33:01

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How to obtain a list of all extra packages by name only

for each in $(ls /var/abs/extra);do ls /var/abs/extra/$each; done >file

Offline

#4 2006-07-20 00:05:58

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: How to obtain a list of all extra packages by name only

you can even cat it if you want a pretty list... like:

for each in $(ls /var/abs/extra);do ls /var/abs/extra/$each; done|cat >file

i think that should work..


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#5 2006-07-20 00:47:45

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: How to obtain a list of all extra packages by name only

I am looking for a list of all extra repository packages listed by name only...no .pkg.tar.gz and not those in my system files alone.

Are the arguments supplied sufficient for this?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#6 2006-07-20 02:13:00

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: How to obtain a list of all extra packages by name only

Yes, those should work as you want...although you will need to make sure you run <code>abs</code> before that, as the command will pull down the PKGBUILDs for everything currently in the repositories (not just the packages on your system).

Offline

#7 2006-07-20 04:42:34

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: How to obtain a list of all extra packages by name only

pacman -Sl extra | cut -d" " -f2

or am i missing something obvious?


I am a gated community.

Offline

#8 2006-07-20 10:48:37

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How to obtain a list of all extra packages by name only

stonecrest wrote:

pacman -Sl extra | cut -d" " -f2

or am i missing something obvious?

mine's faster  tongue

Offline

#9 2006-07-21 01:24:42

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: How to obtain a list of all extra packages by name only

Penguin wrote:
stonecrest wrote:

pacman -Sl extra | cut -d" " -f2

or am i missing something obvious?

mine's faster  tongue

running abs? i think not tongue


I am a gated community.

Offline

#10 2006-07-21 13:04:30

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: How to obtain a list of all extra packages by name only

stonecrest wrote:
Penguin wrote:

mine's faster  tongue

running abs? i think not tongue

Where do you see here running abs???

for each in $(ls /var/abs/extra);do ls /var/abs/extra/$each; done >file

to live is to die

Offline

#11 2006-07-21 14:19:01

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How to obtain a list of all extra packages by name only

Romashka wrote:
stonecrest wrote:
Penguin wrote:

mine's faster  tongue

running abs? i think not tongue

Where do you see here running abs???

for each in $(ls /var/abs/extra);do ls /var/abs/extra/$each; done >file

You need to run abs before using the above line. Penguin's method uses the abs tree. If you don't have an up-to-date tree, your list will be inexact.

Offline

#12 2006-07-21 14:30:53

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: How to obtain a list of all extra packages by name only

Snowman wrote:
Romashka wrote:

Where do you see here running abs???

for each in $(ls /var/abs/extra);do ls /var/abs/extra/$each; done >file

You need to run abs before using the above line. Penguin's method uses the abs tree. If you don't have an up-to-date tree, your list will be inexact.

Oh, really.  :oops:  lol


to live is to die

Offline

#13 2006-07-21 23:57:45

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How to obtain a list of all extra packages by name only

stonecrest wrote:
Penguin wrote:
stonecrest wrote:

pacman -Sl extra | cut -d" " -f2

or am i missing something obvious?

mine's faster  tongue

running abs? i think not tongue

just pretend you don't need to do that. Just....pretend.

Offline

#14 2006-07-22 06:38:55

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: How to obtain a list of all extra packages by name only

yes, but the abs directory may not reflect the actual status of the binary repo. You're better off using stonecrest's method for this reason.


The suggestion box only accepts patches.

Offline

#15 2006-07-22 19:05:51

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: How to obtain a list of all extra packages by name only

my way's fast and doesn't use abs!

ls /var/lib/pacman/extra | sed "s,-[^-]*-[^-]*$,,"

that sed part removes the version and package numbers so you just see the package names.

of course, you need to pacman -Sy before doing this to have a current list.

Offline

#16 2006-07-22 19:32:07

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: How to obtain a list of all extra packages by name only

Paranoos;

Nice list thereby....thanx big_smile

  EDIT:I would add ....|less

Can also do likewise on /var/cache/pacman/pkg...............

Thanks to all commenters and hope it helps others in Arch userland!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#17 2006-07-22 19:46:08

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How to obtain a list of all extra packages by name only

assuming you don't have to update the database  tongue

Offline

#18 2006-07-22 21:09:10

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: How to obtain a list of all extra packages by name only

lilsirecho wrote:

Can also do likewise on /var/cache/pacman/pkg...............

If you do it in <code>/var/cache/pacman/pkg/...</code> that will only give the packages that are currently installed or have been downloaded at some point and not been cleaned out.  I wanted to point that out just in case someone interpreted that as being the same thing as what is listed under <code>/var/lib/pacman/...</code>

Offline

#19 2006-07-22 21:28:08

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: How to obtain a list of all extra packages by name only

Thanks , I guess you got a round tuit!

I see your point and I neglected to separate the two as different lists but using the same technique. :oops:


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#20 2006-07-23 14:09:07

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: How to obtain a list of all extra packages by name only

completely OT but

"a round tuit " smile i had a tea mug with that on it.
its a Yorkshire (uk) thing.   "when i get a round tuit"

coincidence or ... ?

Offline

#21 2006-07-23 15:30:43

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: How to obtain a list of all extra packages by name only

Kern;

Elastic Dog received a round tuit for solving a puzzle I concocted.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#22 2006-07-23 20:10:38

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: How to obtain a list of all extra packages by name only

lilsirecho wrote:

Kern;

Elastic Dog received a round tuit for solving a puzzle I concocted.

I sure did...it's sitting on my desk at home as we speak big_smile

Offline

Board footer

Powered by FluxBB