Sunday, September 24, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  6] [ 0]  / answers: 1 / hits: 7036  / 1 Year ago, tue, september 20, 2022, 3:14:00

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?

More From » 20.04


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 that has worked well most recently on Ubuntu 20.04 Focal Fossa:

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 &&
tar xvf leafpad- && cd leafpad- &&
./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 "" &&
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 build of Leafpad on Ubuntu 20.04 Focal Fossa:

enter image description here

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


[#5559] Wednesday, September 21, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 53
Total Questions: 105
Total Answers: 93

Location: Zimbabwe
Member since Wed, Nov 9, 2022
11 Months ago
otputler questions
Tue, Aug 23, 22, 14:36, 1 Year ago
Fri, Jul 23, 21, 11:57, 2 Years ago
Sun, Feb 12, 23, 18:37, 8 Months ago