The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,806 other followers

OpenSUSE 12.2: Install package lesspipe and using it from bash

Posted by jpluimers on 2014/03/07

lesspipe is a great tool: is an input filter for the pager less as described in less‘s man page. The script allows you to view files with binary content, compressed files, archives and files contained in archives.

… however getting it to run on OpenSUSE was a bit of a journey as it is not part of the standard OpenSUSE 12.x repository. You can only get ‘unstable’ lesspipe packages, of which the Show home:adra / lesspipe – openSUSE Build Service seems to be maintained most frequently.

This is how to install it from there:

zypper addrepo
zypper refresh
zypper install lesspipe

I am using the bash shell, so after doing that, I had to add this line to my my ~/.bashrc

LESSOPEN="| %s"; export LESSOPEN

You can-reapply your ~/.bashrc, but note that it can give issues when appending existing environment variables like PATH. From

bash – How do I reload .bashrc without logging out and back in?:

Use the source command (or the dot shortcut .) which – depending if your .bashrc is in the current directory, can be any of these:

  • source .bashrc
  • . .bashrc
  • source ~/.bashrc
  • . ~/.bashrc



2 Responses to “OpenSUSE 12.2: Install package lesspipe and using it from bash”

  1. Joseph said

    You use OpenSUSE? I *knew* you were awesome! ;-)

    This message sent from OpenSUSE 13.1 KDE

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: