You are not logged in.
I have used yaourt in the past to show the group that a package may belong to. I would like if pacman had the same feature to show what is in core or extra when running a query.
Last edited by slytux (2024-08-04 13:18:07)
Offline
You need to clarify some things. Such as, are you talking about groups or repos? And what do you mean by 'running a query'?
Offline
I run a yaourt command: yaourt -Q --date and then filter the output when I rebuild packages. I did recompile all of plasma before.
Offline
I have the PKGBUILDs for package-query and yaourt
# Contributor: tuxce <tuxce.net@gmail.com>
# Contributor: Skunnyk <skunnyk@archlinux.fr>
pkgname=package-query
pkgver=1.12
pkgrel=1
pkgdesc="Query ALPM and AUR"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h' 'arm' 'aarch64' 'pentium4')
url="https://github.com/archlinuxfr/package-query/"
license=('GPL')
depends=('pacman>=5.2' 'yajl>=2.0')
source=(https://github.com/archlinuxfr/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --localstatedir=/var --prefix=/usr --sysconfdir=/etc --with-aur-url=https://aur.archlinux.org
make
}
package ()
{
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
sha256sums=('0b1f08cb8397019b36ac46898d2ec1a106370f4f2895cfa5f69070aa47228301')
# Maintainer: grufo <madmurphy333 AT gmail DOT com>
# Author: Julien MISCHKOWITZ <wain@archlinux.fr>
# Author: tuxce <tuxce.net@gmail.com>
# Contributor: Skunnyk <skunnyk@archlinux.fr>
pkgname='yaourt'
pkgver='1.9'
pkgrel=1
pkgdesc='A pacman wrapper with extended features and AUR support'
arch=('any')
url="https://github.com/archlinuxfr/${pkgname}"
license=('GPL')
depends=('diffutils' 'pacman>=5.0' 'package-query>=1.8' 'gettext')
optdepends=('aurvote: vote for favorite packages from AUR'
'customizepkg: automatically modify PKGBUILD during install/upgrade'
'rsync: retrieve PKGBUILD from official repositories')
backup=('etc/yaourtrc')
source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
build() {
cd "${srcdir}/${pkgname}-${pkgver}/"
make PREFIX=/usr sysconfdir=/etc localstatedir=/var
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/"
make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR="${pkgdir}" install
}
sha256sums=('9a485cef9d50e80b8abae5dbb147e09bdeb8818d29316b65e892fb560c48517d')
Offline
putting a repo with -Q makes no sense at all. Installed packages are installed, they are unrelated to whatever repo a package might be in now, and what repo a package might have come from is not stored in the database, so it's simply unavailable.
What, exactly, are you trying to accomplish?
Offline
I might rebuild all of core. I have a build script that automates the building process. It can work on a text file with items in a list (one per line) in a for loop.
Offline
So you're just looking for -Sl core?
Offline
Thanks, that works also.
Offline
Also? That is the correct way to do what you've asked.
If that is indeed what you need, please mark the thread as solved. And in the future, before you suggest feature requests for pacman, you might want to at least glance at it's man page or any documentation on the basics of how to use it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
This is also working: pacman -Q --groups plasma
Offline
So you're talking groups, not repos? You're giving a lot of conflicting info.
Last edited by Scimmia (2024-08-04 13:27:08)
Offline
I'm used to the yaourt output but did try to find the answer to the repo question to see all the packages listed in core. I know what commands to run using pacman.
Offline