Skip to main content

Prints package descriptions. A yum plugin for when you wat.

Project description

Wild card! Oddshocks writes a yum plugin!

Wat

When I use yum to update my system or install new packages, I sometimes spot a package I am unfamiliar with, such as the mesa-dri-filesystem package I saw the other day. In some graphical extensions of yum, a brief discription of the package is listed under each package name. I figured I’d check out some docs on writing yum plugins, to see if I could display a description under each package name in the CLI updater. Then the Internet was like, “Yo, each yum plugin is a single file, written in the Python programming language”, and after I cleaned up my brain which had EXPLODED out of my HEAD I made this repo and now we are on a science adventure.

License

GNU GPL v3+.

Installing

Installation is easy! From the project directory (where this file is), do the following.

Shell Script

I have written a bit of a shell script that does the above installation for you. It is install.sh, and will probably require root privs, like so: sudo ./install.sh. Currently, it does not do step 3 below, so make sure to do that yourself.

Manual Installation

  1. Install the plugin file: sudo cp yumwat.py /usr/lib/yum-plugins/

  2. Install the plugin’s configuration file: sudo cp yumwat.conf /etc/yum/pluginconf.d/

  3. Add the line pluginpath=/usr/lib/yum-plugins to the file /etc/yum.conf.

Timid mode

The yumwat.conf file contains the line timid=0. If timid is set to 0, timid mode is off, and yumwat will print output unless the --nowat option is used with yum. If timid is set to 1, timid mode is on, and yumwat will not print output unless the --wat option is used with yum.

See below for how to easily enable or disable timid mode.

Enabling and Disabling

Enable yumwatsudo /usr/lib/yum-plugins/yumwat.py enable

Disable yumwatsudo /usr/lib/yum-plugins/yumwat.py disable

Enable timid modesudo /usr/lib/yum-plugins/yumwat.py timid

Disable timid modesudo /usr/lib/yum-plugins/yumwat.py assertive

Uninstalling

Easier than installation! We just need to make sure you remove the generated bytecode file, too. You can do this by running the uninstall script packaged with this plugin with root privs:

sudo ./uninstall.sh

Otherwise, follow these steps:

  1. Remove the configuration file: sudo rm /etc/yum/pluginconf.d/yumwat.conf

  2. Remove the plugin file and its generated bytecode: sudo rm /usr/lib/yum-plugins/yumwat.{py,pyc}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yumwat-0.4.3.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file yumwat-0.4.3.tar.gz.

File metadata

  • Download URL: yumwat-0.4.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yumwat-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a55dbfc6feae1c239afedf3653cf3b4d1b7e5eac15c62c1f2c4c3422216df3cb
MD5 01313aa097486f1c59d06e8e127b1258
BLAKE2b-256 1982564994409a98afa6313768c3428cbeb1ef18038d4862a21b16b3cf77665f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page