Short Tip: Create a “bash alias” with an argument
March 10, 2008 — liquidat
I always check for changes in rpm files. Unfortunately, the command to do so needs some typing:
rpm -q --changelog PACKAGENAME|most
(Btw., most is a replacement for less). The best idea would be to have a bash/zsh/whatever alias with an argument. This is unfortunately difficult or even impossible, but it is quite easy to define a simple function:
rpmch () { rpm -q --changelog "$1"|most}
Copy that string to your .zshrc or .bashrc and you can easily query the changelog of rpm packages with the command
rpmch PACKAGENAME
This of course works for other commands as well.
