How To Install mapserver on Fedora 34
Introduction
In this tutorial we learn how to install mapserver
on Fedora 34.
What is mapserver
Mapserver is an internet mapping program that converts GIS data to map images in real time. With appropriate interface pages, Mapserver can provide an interactive internet map based on custom GIS data.
We can use yum
or dnf
to install mapserver
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mapserver.
Install mapserver on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mapserver
using dnf
by running the following command:
sudo dnf -y install mapserver
Install mapserver on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mapserver
using yum
by running the following command:
sudo yum -y install mapserver
How To Uninstall mapserver on Fedora 34
To uninstall only the mapserver
package we can use the following command:
sudo dnf remove mapserver
mapserver Package Contents on Fedora 34
/usr/bin/legend
/usr/bin/mapserv
/usr/bin/msencrypt
/usr/bin/scalebar
/usr/bin/shp2img
/usr/bin/shptree
/usr/bin/shptreetst
/usr/bin/shptreevis
/usr/bin/sortshp
/usr/bin/tile4ms
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/029507225e32772f48610bcf804d7dcaacd439
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/9ab702c6f22cd35df2c87312ea0ab16ea29773
/usr/lib/.build-id/42
/usr/lib/.build-id/42/a80d4be8a1aedbd33752e6777a2939e3c222e0
/usr/lib/.build-id/43
/usr/lib/.build-id/43/0f5a9e407dcbd718ceeb87a1a5f6439ffec7a4
/usr/lib/.build-id/61
/usr/lib/.build-id/61/4b73df8f7f6165d7b6c34ba33ede9b2f050814
/usr/lib/.build-id/77
/usr/lib/.build-id/77/a84385c59d24f6ab74eeef6fd1c9625d9281d5
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/2e0bc3c96542d152562d1103fb2535922fe4b6
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/df1225953fa20cdd8e51a0c817c744b43b3153
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/87df46c200e279075b5c0529b3ff59089e73e0
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/3f15337a45d39b56e3ded99f6e4fd524af2f85
/usr/share/doc/mapserver
/usr/share/doc/mapserver/README.rst
/usr/share/mapserver
/usr/share/mapserver/cmake
/usr/share/mapserver/cmake/mapserver-config-version.cmake
/usr/share/mapserver/cmake/mapserver-config.cmake
/usr/share/mapserver/cmake/mapserverTargets-noconfig.cmake
/usr/share/mapserver/cmake/mapserverTargets.cmake
/usr/share/mapserver/mapfile.xsd
/usr/share/mapserver/mapfile.xsl
/usr/bin/legend
/usr/bin/mapserv
/usr/bin/msencrypt
/usr/bin/scalebar
/usr/bin/shp2img
/usr/bin/shptree
/usr/bin/shptreetst
/usr/bin/shptreevis
/usr/bin/sortshp
/usr/bin/tile4ms
/usr/lib/.build-id
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/f4a708be62bcc0e9aaa8a41b3f4fb9ec6483cb
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/6ee6a24e160c66b0080fc2c3400fb0afc65b38
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/ff06867e5d452c416f26ca28cf8f8e323e7be0
/usr/lib/.build-id/92
/usr/lib/.build-id/92/58655e14effae8d1568fdfe42366933898ea5f
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/bc11edfbd48c73037ff0284b7ac2a1f4016b20
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/66393feec316fe40f63389b6e940ffbfc00e91
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/fe3c7064b676e9d3b894f1473806fc71fd24c9
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/2cc5f0f11b066db6a253719a4e2a16115c17bd
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/b8952e56c9c9e8c18f4c085c4da156ccd3a9de
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/5ed77a301afa132f5669310125315352048918
/usr/share/doc/mapserver
/usr/share/doc/mapserver/README.rst
/usr/share/mapserver
/usr/share/mapserver/cmake
/usr/share/mapserver/cmake/mapserver-config-version.cmake
/usr/share/mapserver/cmake/mapserver-config.cmake
/usr/share/mapserver/cmake/mapserverTargets-noconfig.cmake
/usr/share/mapserver/cmake/mapserverTargets.cmake
/usr/share/mapserver/mapfile.xsd
/usr/share/mapserver/mapfile.xsl
References
Summary
In this tutorial we learn how to install mapserver
on Fedora 34 using yum and dnf.