Skip to content

u/AladW

In this archive from May 2016 to Mar 2024

4
posts
758
comments
3
media
3.5k
score

Although I suppose someone could slip some weird stuff in a post install hook.

Yes, this is the point. Also `makepkg` uses `sudo` by default, which has a credential timeout - so any PKGBUILD command can elevate commands with `sudo` until this timeout expires, without prompting the user. This trickles down to the build system as well (which I inadvertently found out through some project's test suite...). Ill-designed AUR helpers make it worse by running `sudo -k` loops in the background.

1 points

Rebuilding every package in your local repository whenever you want new releases with -u seems excessive... but yes, it should handle any package already in the (specified) local repository. At least it works like that on my end.

edit: are some of those targets not in AUR by chance?

1 points

I'm not sure why you're passing all targets in ~/.cache/aurutils/sync to sync-rebuild. Only targets that are A. already in your local repository and B. need a rebuild should be passed to sync-rebuild.

The warning is about a signature not being present. Since this is not relevant, I've redirected stderr for pacsift to /dev/null. That and other fixes are in the master branch, thx

1 points

Every binary package contains pkgbase and pkgname in .PKGINFO. For example

# Generated by makepkg 6.0.2
# using fakeroot version 1.30.1
pkgname = ttf-ubuntu-nerd
pkgbase = nerd-fonts
pkgver = 2.3.3-2
pkgdesc = Patched font Ubuntu from nerd fonts library
url = https://github.com/ryanoasis/nerd-fonts
builddate = 1674755803
packager = T.J. Townsend <blakkheim@archlinux.org>
size = 20904889
arch = any
license = MIT
replaces = nerd-fonts-ubuntu
conflict = nerd-fonts-ubuntu
provides = ttf-font-nerd
2 points

You don't need remote queries, pacman databases contain pkgbase and pkgname for every package. With expac:

expac -S '%e\t%n' | awk '$1 == "nerd-fonts" {print}'

Or if you want to install all 3 GB of those fonts:

expac -S '%e\t%n' | awk '$1 == "nerd-fonts" {print $2}' | sudo pacman -S -
2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.