0

I see that my favourite text editor Leafpad has been dropped by Debian and now also from Ubuntu versions 19.04 Disco Dingo and onward. How can I get this simple text editor installed now?

1

The good news is that it is relatively easy to compile and install Leafpad on a modern Ubuntu system. I demonstrate the 2 step technique on Ubuntu 19.04 Disco Dingo although the same technique should also work for releases following 19.04:

Step 1: Dependencies...

A small number of build tools and dependencies are required, simply copy and paste the following single command into a Terminal window:

sudo apt-get install build-essential checkinstall intltool libgtk2.0-dev

The package manager will tend to drag in a few more interrelated dependencies along with this list...

Step 2: Download, compile and build...

The following single command will download the source, compile and install it. Simply copy the whole code block and paste it into a Terminal window:

mkdir -v $HOME/leafpad_build && cd $HOME/leafpad_build && \
wget http://savannah.nongnu.org/download/leafpad/leafpad-0.8.18.1.tar.gz && \
tar xvf leafpad-0.8.18.1.tar.gz && cd leafpad-0.8.18.1 && \
./configure && make && \
sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/leafpad_build" \
     --pkgname leafpad --backup=no --deldoc=yes --deldesc=yes --delspec=yes \
     --default --pkgversion "0.8.18.1" && \
make distclean && sudo ldconfig

If you like afterwards you can delete the build directory $HOME/leafpad_build or you can keep it as is to recompile at a later stage.

Obligatory screenshot...

Below is a screenshot demonstrating a successful compile of Leafpad on Ubuntu 19.04 Disco Dingo:

enter image description here

And I hope this has made at least a few Leafpad users a little happier :)

References:

1

I found the Leafpad deb installer available for download from these websites:

I also found Leafpad snap at https://snapcraft.io/leafpad

Maybe (IMHO) the snap version is where the developer and maintainer heads to simplify maintenance and cross platform compatibility.

New contributor
Akuma-kun is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.