You are not logged in.
An error in the command? Error caused by different awk, gawk, versions, features? Error in my system setup?
Tried using the provided example with the following results. Would the reworked command fix this in all situations or did I just get lucky?
Wiki quote: https://wiki.archlinux.org/index.php/Pa … l_packages
Dependencies are alphabetically sorted and doubles are removed.
----
$ pacman -Si packages | awk -F'[:<=>]' '/^Depends/ {print $2}' | xargs -n1 | sort -u
My systems awk:
$ which awk
/usr/bin/awk
$ file /usr/bin/awk
/usr/bin/awk: symbolic link to gawk
$ pacman -Q gawk
gawk 4.2.1-1Info on example package:
$ pacman -Si bash
Repository : core
Name : bash
Version : 4.4.023-1
Description : The GNU Bourne Again shell
Architecture : x86_64
URL : http://www.gnu.org/software/bash/bash.html
Licenses : GPL
Groups : base
Provides : sh
Depends On : readline>=7.0 glibc ncurses
Optional Deps : bash-completion: for tab completion
Conflicts With : None
Replaces : None
Download Size : 1428.30 KiB
Installed Size : 7321.00 KiB
Packager : Bartlomiej Piotrowski <bpiotrowski@archlinux.org>
Build Date : Mon 04 Jun 2018 01:54:11 AM PDT
Validated By : MD5 Sum SHA-256 Sum SignatureThe example command output:
$ pacman -Si bash | awk -F'[:<=>]' '/^Depends/ {print $2}' | xargs -n1 | sort -u
readlineReworked command output:
$ pacman -Si bash | awk -F':' '/^Depends/ {gsub (/[<>.=0-9]/, "") ; print $2}' | xargs -n1 | sort -u
glibc
ncurses
readlineScripts I Use : https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics
Offline
Works for me...
┌─[Veles ~]
└─╼ pacman -Si xterm | awk -F'[:<=>]' '/^Depends/ {print $2}' | xargs -n1 | sort -u
libutempter
libxaw
libxft
libxkbfile
ncurses
xbitmaps
xorg-luit
┌─[Veles ~]
└─╼ pacman -Q gawk
gawk 4.2.1-1Offline
I think it may only be a problem with versioned dep's. Try running it on bash?
Scripts I Use : https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics
Offline
$ expac -l '\n' -S '%D' bash
readline>=7.0
glibc
ncursesWorks for me, whether the package has versioned deps or not.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Lol, yea that works but what about the awk example?
Scripts I Use : https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics
Offline
The purpose of the awk example is apparently to show you all dependencies up to and including the first one with a versioned dep. It treats anything after a [<=>] as field $3 which it explicitly does not print.
No, I have no idea why that's useful. I guess you can ask Alad, he thinks it's "simpler": https://wiki.archlinux.org/index.php?ti … did=428751
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline