How to Install and Uninstall libtorch-th Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: March 03,2025

1. Install "libtorch-th" package

In this section, we are going to explain the necessary steps to install libtorch-th on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install libtorch-th

2. Uninstall "libtorch-th" package

This is a short guide on how to uninstall libtorch-th on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove libtorch-th $ sudo apt autoclean && sudo apt autoremove

3. Information about the libtorch-th package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: libtorch-th
Architecture: amd64
Version: 0~20170926-g89ede3b-2
Multi-Arch: same
Priority: optional
Section: universe/libs
Source: lua-torch-torch7
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Science Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3911
Depends: libblas3 | libblas.so.3, libc6 (>= 2.23), libgomp1 (>= 4.9), liblapack3 | liblapack.so.3
Filename: pool/universe/l/lua-torch-torch7/libtorch-th_0~20170926-g89ede3b-2_amd64.deb
Size: 472980
MD5sum: 77c8b9d449bde4d925e8b40bbc26fe8d
SHA1: aaea62c462788a7bcd0af5b2fcb269d9d8595e39
SHA256: 25068a31c5c0e3ccdea39aa33fd7a8cc63fdb5d42c01d32972c5314ea7a13ec9
Homepage: https://github.com/torch/torch7
Description: libTH.so of Torch Package for Torch Framework
Description-md5: d32af5fa156ad05e00b434a32a147ce2

5. The same packages on other Linux Distributions