How To Install stlcmd on Ubuntu 20.04
Introduction
In this tutorial we learn how to install stlcmd
on Ubuntu 20.04.
What is stlcmd
stlcmd is:
stl_cmd is a suite of command line tools for generating, inspecting and manipulating STL files which are often used in 3D printing. The goal of this project is to be a resource for teaching terminal usage and some basic programming concepts in the 3D printing space. Imagine an assignment which involves building a brick wall. Students would need to use a combination of stl_cube, stl_transform and stl_merge. The commands could be combined in a bash or
script with for and while loops, could accept input and use conditionals to affect the attributes of the wall.
There are three methods to install stlcmd
on Ubuntu 20.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 stlcmd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install stlcmd
using apt-get
by running the following command:
sudo apt-get -y install stlcmd
Install stlcmd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install stlcmd
using apt
by running the following command:
sudo apt -y install stlcmd
Install stlcmd 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 stlcmd
using aptitude
by running the following command:
sudo aptitude -y install stlcmd
How To Uninstall stlcmd on Ubuntu 20.04
To uninstall only the stlcmd
package we can use the following command:
sudo apt-get remove stlcmd
Uninstall stlcmd And Its Dependencies
To uninstall stlcmd
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove stlcmd
Remove stlcmd Configurations and Data
To remove stlcmd
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge stlcmd
Remove stlcmd configuration, data, and all of its dependencies
We can use the following command to remove stlcmd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge stlcmd
References
Summary
In this tutorial we learn how to install stlcmd
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.