You are not logged in.

#1 2024-08-04 11:33:11

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

[Solved] Pacman feature request (yaourt-related)

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

#2 2024-08-04 12:29:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,182

Re: [Solved] Pacman feature request (yaourt-related)

You need to clarify some things. Such as, are you talking about groups or repos? And what do you mean by 'running a query'?

Online

#3 2024-08-04 12:52:45

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

Re: [Solved] Pacman feature request (yaourt-related)

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

#4 2024-08-04 12:57:01

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

Re: [Solved] Pacman feature request (yaourt-related)

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

#5 2024-08-04 12:58:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,182

Re: [Solved] Pacman feature request (yaourt-related)

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?

Online

#6 2024-08-04 12:59:41

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

Re: [Solved] Pacman feature request (yaourt-related)

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

#7 2024-08-04 13:00:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,182

Re: [Solved] Pacman feature request (yaourt-related)

So you're just looking for -Sl core?

Online

#8 2024-08-04 13:05:31

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

Re: [Solved] Pacman feature request (yaourt-related)

Thanks, that works also.

Offline

#9 2024-08-04 13:09:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [Solved] Pacman feature request (yaourt-related)

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

#10 2024-08-04 13:14:46

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

Re: [Solved] Pacman feature request (yaourt-related)

This is also working: pacman -Q --groups plasma

Offline

#11 2024-08-04 13:26:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,182

Re: [Solved] Pacman feature request (yaourt-related)

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)

Online

#12 2024-08-04 14:00:50

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 136

Re: [Solved] Pacman feature request (yaourt-related)

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

Board footer

Powered by FluxBB