How To Install syslinux-legacy on Ubuntu 18.04

In this tutorial we learn how to install syslinux-legacy on Ubuntu 18.04. syslinux-legacy is Bootloader for Linux/i386 using MS-DOS floppies

Introduction

In this tutorial we learn how to install syslinux-legacy on Ubuntu 18.04.

What is syslinux-legacy

syslinux-legacy is:

SYSLINUX is a boot loader for the Linux/i386 operating system which operates off an MS-DOS/Windows FAT filesystem. It is intended to simplify first-time installation of Linux, and for creation of rescue and other special-purpose boot disks.

It can also be used as a PXE bootloader during network boots.

SYSLINUX is probably not suitable as a general purpose boot loader. However, SYSLINUX has shown itself to be quite useful in a number of special-purpose applications.

There are three methods to install syslinux-legacy on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install syslinux-legacy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install syslinux-legacy using apt-get by running the following command:

sudo apt-get -y install syslinux-legacy

Install syslinux-legacy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install syslinux-legacy using apt by running the following command:

sudo apt -y install syslinux-legacy

Install syslinux-legacy Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install syslinux-legacy using aptitude by running the following command:

sudo aptitude -y install syslinux-legacy

How To Uninstall syslinux-legacy on Ubuntu 18.04

To uninstall only the syslinux-legacy package we can use the following command:

sudo apt-get remove syslinux-legacy

Uninstall syslinux-legacy And Its Dependencies

To uninstall syslinux-legacy and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove syslinux-legacy

Remove syslinux-legacy Configurations and Data

To remove syslinux-legacy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge syslinux-legacy

Remove syslinux-legacy configuration, data, and all of its dependencies

We can use the following command to remove syslinux-legacy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge syslinux-legacy

References

Summary

In this tutorial we learn how to install syslinux-legacy package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.