You are not logged in.
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
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
for each in $(ls /var/abs/extra);do ls /var/abs/extra/$each; done >file
Offline
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
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
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
pacman -Sl extra | cut -d" " -f2
or am i missing something obvious?
I am a gated community.
Offline
pacman -Sl extra | cut -d" " -f2
or am i missing something obvious?
mine's faster
Offline
stonecrest wrote:pacman -Sl extra | cut -d" " -f2
or am i missing something obvious?
mine's faster
running abs? i think not
I am a gated community.
Offline
Penguin wrote:mine's faster
running abs? i think not
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
stonecrest wrote:Penguin wrote:mine's faster
running abs? i think not
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
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:
to live is to die
Offline
Penguin wrote:stonecrest wrote:pacman -Sl extra | cut -d" " -f2
or am i missing something obvious?
mine's faster
running abs? i think not
just pretend you don't need to do that. Just....pretend.
Offline
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
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
Paranoos;
Nice list thereby....thanx
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
assuming you don't have to update the database
Offline
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
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
completely OT but
"a round tuit " i had a tea mug with that on it.
its a Yorkshire (uk) thing. "when i get a round tuit"
coincidence or ... ?
Offline
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
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
Offline