How to Install and Uninstall osm2pgsql Package on Debian 12 (Bookworm)

Last updated: May 15,2024

1. Install "osm2pgsql" package

Please follow the guidance below to install osm2pgsql on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install osm2pgsql

2. Uninstall "osm2pgsql" package

In this section, we are going to explain the necessary steps to uninstall osm2pgsql on Debian 12 (Bookworm):

$ sudo apt remove osm2pgsql $ sudo apt autoclean && sudo apt autoremove

3. Information about the osm2pgsql package on Debian 12 (Bookworm)

Package: osm2pgsql
Version: 1.8.0+ds-1
Installed-Size: 1833
Maintainer: Debian GIS Project
Architecture: amd64
Depends: python3-psycopg2, python3-pyosmium, python3:any, libboost-filesystem1.74.0 (>= 1.74.0), libbz2-1.0, libc6 (>= 2.34), libexpat1 (>= 2.0.1), libgcc-s1 (>= 3.0), liblua5.3-0, libpq5, libproj25 (>= 6.1.0), libstdc++6 (>= 12), zlib1g (>= 1:1.2.6)
Recommends: postgis
Description: OpenStreetMap data to PostgreSQL converter
Description-md5: 90d71a17cb11022105b2ed19601badf4
Homepage: https://osm2pgsql.org/
Tag: implemented-in::c++, role::program, use::converting
Section: utils
Priority: optional
Filename: pool/main/o/osm2pgsql/osm2pgsql_1.8.0+ds-1_amd64.deb
Size: 522612
MD5sum: 2f2f6cf492c95366b65e822d2573b915
SHA256: c002474511a57652e1efebc0b31006ed92fd8593ce32d3996b35bd4db1d24633