How To Install python-sgp4 on Debian 9
Introduction
In this tutorial we learn how to install python-sgp4
on Debian 9.
What is python-sgp4
python-sgp4 is:
This Python package computes the position and velocity of an earth-orbiting satellite, given the satellite??s TLE orbital elements from a source like Celestrak.
It implements the most recent version of SGP4, and is regularly run against the SGP4 test suite to make sure that its satellite position predictions agree to within 0.1 mm of the predictions of the standard C++ implementation of the algorithm. This error is far less than the 1-3 km/day by which satellites themselves deviate from the ideal orbits described in TLE files.
The C++ function names have been retained, since users may already be familiar with this library in other languages
There are three methods to install python-sgp4
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-sgp4 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-sgp4
using apt-get
by running the following command:
sudo apt-get -y install python-sgp4
Install python-sgp4 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-sgp4
using apt
by running the following command:
sudo apt -y install python-sgp4
Install python-sgp4 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-sgp4
using aptitude
by running the following command:
sudo aptitude -y install python-sgp4
How To Uninstall python-sgp4 on Debian 9
To uninstall only the python-sgp4
package we can use the following command:
sudo apt-get remove python-sgp4
Uninstall python-sgp4 And Its Dependencies
To uninstall python-sgp4
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-sgp4
Remove python-sgp4 Configurations and Data
To remove python-sgp4
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-sgp4
Remove python-sgp4 configuration, data, and all of its dependencies
We can use the following command to remove python-sgp4
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-sgp4
Dependencies
python-sgp4 have the following dependencies:
References
Summary
In this tutorial we learn how to install python-sgp4
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.