From Gentoo Wiki
Jump to: navigation, search


wgetpaste is an extremely simple command-line interface to various online pastebin services.


Install app-text/wgetpaste:

root #emerge --ask app-text/wgetpaste


Using the wgetpaste command is simple. Presuming bpaste services is selected (which is the default service) to create a paste of the system's Xorg configuration, run the following command:

user $wgetpaste /etc/X11/xorg.conf

To create a paste of xorg.conf using the tiny URL service use the -u option:

user $wgetpaste -u /etc/X11/xorg.conf

To set a language for syntax highlighting use the -l option:

user $wgetpaste -l Bash /etc/bash/bashrc

Use the -L option to list all available languages, which depends on selected paste service:

user $wgetpaste -L

To paste the entire output of a command, use the -c option. Remember to quote the command:

user $wgetpaste -c 'emerge -vp musique'


To list available pastebin services use the -S option:

user $wgetpaste -S
Services supported: (case sensitive):
   Name:        | Url:
   *bpaste      | https://bpaste.net/
    ca          | http://pastebin.ca/
    codepad     | http://codepad.org/
    dpaste      | http://dpaste.com/
    gists       | https://api.github.com/gists
    lugons      | https://paste.lugons.org/
    poundpython | http://paste.pound-python.org/

To use gists as the pastebin service instead of bpaste (the default) use the -s option with "gists" specified:

user $wgetpaste -s gists /etc/X11/xorg.conf

Additional help

Additional help can be accessed after wgetpaste has been installed by running the wgetpaste command with the --help option:

user $wgetpaste --help