У меня неправильная установка gdal которая мешает мне установить пакет sf R в моей среде conda умолчанию (см. Https://stackoverflow.com/a/51369036/1840471). Я пытаюсь удалить все пакеты не- gdal , но испытываю трудности.

Я уже выполнил эти команды:

sudo pip freeze | xargs pip uninstall -y  # To remove all pip packages.
sudo apt-get purge gdal-bin
sudo apt-get purge build-essential python-all-dev
sudo apt-get purge libgdal-dev
sudo apt-get purge libproj-dev
# Per https://gis.stackexchange.com/a/179458/65604
sudo ln -s /usr/lib/libproj.so.0 /usr/lib/libproj.so

Тем не менее, apt-cache search gdal еще показывает это:

dans-gdal-scripts - GDAL contributed tools by Geographic Information Network of Alaska
gdal-bin - Geospatial Data Abstraction Library - Utility programs
libalgorithms1 - GDAL add-on tools to perform useful raster processing - libalgorithms
libfileclasses1 - GDAL add-on tools to perform useful raster processing - libfileClasses
libgdal-dev - Geospatial Data Abstraction Library - Development files
libgdal-doc - Documentation for the Geospatial Data Abstraction Library
libgdal-java - Java bindings to the Geospatial Data Abstraction Library
libgdal-perl - Perl bindings to the Geospatial Data Abstraction Library
libgdal1-1.11.3-grass - GRASS extension for the GDAL library
libgdal1-dev - Geospatial Data Abstraction Library - Transitional package
libgdal1i - Geospatial Data Abstraction Library
libimageclasses1 - GDAL add-on tools to perform useful raster processing - libimageClasses
liblasclasses1 - GDAL add-on tools to perform useful raster processing - liblasClasses
libosmium2-dev - C++ framework for working with OSM data files
node-srs - spatial reference library for Node.js
pktools - GDAL add-on tools to perform useful raster processing
pktools-dev - GDAL add-on tools to perform useful raster processing - development files
python-csvkit - library of utilities for working with CSV
python-gdal - Python bindings to the Geospatial Data Abstraction Library
python-rasterio - Python 2 API for using geospatial raster data with Numpy
python-stetl - Streaming ETL - Geospatial ETL framework for Python 2
python3-csvkit - library of utilities for working with CSV (Python 3)
python3-gdal - Python 3 bindings to the Geospatial Data Abstraction Library
python3-rasterio - Python 3 API for using geospatial raster data with Numpy
qlandkartegt - GPS mapping (GeoTiff and vector) and GPSr management
rasterio - Command line tool for investigating geospatial rasters
stetl - Streaming ETL - Commandline utility

Как я могу удалить все пакеты, связанные с apt-get gdal ?

0