Skip to content

u/orestisf

In this archive from Jun 2014 to Jan 2019

3
posts
41
comments
0
media
259
score

Top posts

svgcleaner.hook

Inspired by this post. Made a pacman post transaction hook that uses svgcleaner whenever a package includes .svg files. /etc/pacman.d/hooks/svgcleaner.hook: [Trigger] Operation = Install Operation = Upgrade Type = File Target = usr//.svg

22 points3 comments
Open on Reddit

Top comments

(IMO) better way:

  1. List all explicitly installed packages: pacman -Qqe|sort > explicit
  2. List all base and base-devel packages that you don't want to remove: pacman -Qqg base base-devel|sort > base
  3. Remove (2.) from (1.): comm -13 base explicit > tocheck
  4. Open tocheck with an editor and start removing all the packages you need. I have 1455 packages on my system but with this I only have to check 372 packages.
  5. Mark each package left in tocheck as a dependency.

code:

while read package
do
sudo pacman -D --asdeps $package
done < ./tocheck

finally, remove all "orphan" packages with: sudo pacman -Rns $(pacman -Qdtq)

77 points

Why might --color=always be undesirable? I think I've read somewhere that it could mess with piping but I don't understand how.

cd /tmp
echo test > a
echo test > b
echo test2 >> a
echo test3 >> b
diff --color=always a b > diff

Open file diff with an editor (don't cat). Contents:

2c2
< test2
---
> test3
21 points

Subreddits

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.