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?
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?
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:
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:
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:
And I hope this has made at least a few Leafpad users a little happier :)
References:
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.
2020-10-27 Update: Leafpad installed from Snap store keeps giving error "permission denied" when opening any text file since they moved Leafpad to Snap. Why? Why did they ruin this wonderful app??? I give 1 star to Snap not to Leafpad.
2020-10-29 Update: I found that "Featherpad" is available in the Ubuntu repository and that works perfectly. Featherpad has a simplistic interface like Leafpad with few options added for code highlighting. Furthermore Featherpad can properly display the white spaces at the end of line like Windows Notepad. Leafpad cannot do such a thing :'( Still i would really like that the Leafpad's author would make Leafpad available again in Ubuntu repository.
19.04 and later
The leafpad snap package can be installed in all currrently supported versions of Ubuntu with the following command:
18.04 and earlier
Open the terminal and type: