Installing an spefic version of minetest on ubuntu

Post Reply
User avatar
YellowCreeper
Member
Posts: 10
Joined: Wed Jul 17, 2024 18:33
In-game: YellowCreeper87

Installing an spefic version of minetest on ubuntu

by YellowCreeper » Post

Edit: I installed minetest 5.4.1 finally, here's my solution: removed 5.8.1 from software center (I guess) and ran a command to install 5.4.1
But new question: Is it possible to have 2 minetest versions at the same time in linux? Forexample 5.4.1 and 5.8.0
Also if it's possible to install 5.5.1 I need help please, because 5.4.1 controller senvisibility was weird and I couldn't fix it by just changing the in-game senvisibility.
.

Old question which solved:
I was looking for a way to download minetest 5.5.1 on linux, I searched the internet a lot, finally found this site
http://archive.ubuntu.com/ubuntu/pool/u ... /minetest/
but there wasn't a 5.5.1 on this list, so I decided to install 5.4.1 instead
At the first I should say that I had minetest 5.8.0 before, and it was on this location: home/snap and to start installing another version, I moved that to another folder to start installing the older version (And also I'm not tech-savvy, I was looking for solutions myself) There was a desktop Icon of minetest 5.8 before I do this, and it still remains.
I downloaded "minetest-data_5.4.1+repack-2build1" from there, and this file downloaded (attachments: photo 1)
then extracted it in this location: home/snap and a folder created which I renamed it to "minetest"
then opened it, and it contained 2 compressed files (attachments: photo 2)
I extracted both of them and these folders got created (and I didn't delete the zip files after extracting) (attachments: photo 3)
but I don't know how to run it and also the desktop icon of minetest is still for the 5.8 version and when I open it, it says : "You have No games installed"
Also when I open the desktop icon, 3 new folders automaticalle create in home/snap/minetest which are these: "1926", "current", "common"
I need a way to install 5.4.1 and if it's possible, have both 5.8 and 5.4.1 version
can anyone help me to do this? Thanks.
Attachments
photo 3
photo 3
Screenshot from 2024-08-01 13-07-44.png (9.28 KiB) Viewed 701 times
photo 2
photo 2
Screenshot from 2024-08-01 13-07-21.png (3.44 KiB) Viewed 701 times
Photo 1
Photo 1
Screenshot from 2024-08-01 13-06-15.png (6.62 KiB) Viewed 701 times
Last edited by YellowCreeper on Sat Aug 03, 2024 12:25, edited 1 time in total.
A normal creeper from earth. Interested in gaming

User avatar
Blockhead
Moderator
Posts: 2170
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: Installing an spefic version of minetest on ubuntu [EDIT: Installed]

by Blockhead » Post

YellowCreeper wrote:
Thu Aug 01, 2024 09:51
I was looking for a way to download minetest 5.5.1 on linux, I searched the internet a lot, finally found this site
http://archive.ubuntu.com/ubuntu/pool/u ... /minetest/

but there wasn't a 5.5.1 on this list, so I decided to install 5.4.1 instead

[talking about extracting the files ...]
This website is actually the place* where package manager fetches packages for you when you use Software Center, apt on the command line, etc. (for things that aren't snaps, flatpaks or AppImages).

*maybe not the exact website if you use a mirror, but laid out the same way.

The reason there is a limited number of versions is because Ubuntu is a "stable release" distribution of Linux. Every 2 years a new Long Term Support (LTS) version of Ubuntu comes out and only then does Minetest update. 5.5.x got skipped because it released in between LTS versions of Ubuntu.

The files you downloaded were not actually zip files, but they would have opened in the same program that you use for zip files and other "archive" files. Archives are files that fit other files inside so they are easy to download, and often smaller than the files that they are made of (using techniques called "compression").

The archives are actually "deb" files; deb is short for Debian, which Ubuntu is based on. You experimented with extracting them, but they are not made to be pulled apart like that. deb files are made to be installed. Usually this is done in a terminal with a command like:

Code: Select all

sudo dpkg -i minetest-whatever-version.deb
but you can use a graphical installer like gdebi (find it in Software Center).
YellowCreeper wrote:
Thu Aug 01, 2024 09:51
I need a way to install 5.4.1 and if it's possible, have both 5.8 and 5.4.1 version
can anyone help me to do this? Thanks.
Here is where it gets tricky:

The Minetest versions for Windows and macOS are usually available in their own directories ("folders") like this, but on Linux it is typical to install through a package manager. A package manager install is usually convenient to get things like a desktop icon. But since installed packages are so common on Linux, it's actually hard to get a "portable" copy of Minetest.

Also, you might think that if you extracted out Minetest from the deb packages that you downloaded that it would run well. This isn't the case. When a copy of Minetest is compiled from the source code, it's either made to "run in place" or not. All the copies you can download off the ubuntu archive site (archive.ubuntu.com) are set to not run in place; they are made to be installed and only properly work that way. There aren't any up to date versions for Linux/Ubuntu on the Engine Builds section either I think.

How do you get a copy of Minetest that is a "run in place" copy? Well, you can compile it from source. I would recommend for you the [Debian / Ubuntu] 1-line script: install Minetest Git instructions 'For "portable" installs (I'll copy it here):

Code: Select all

sudo apt-get update && sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev && git clone --depth=1 https://github.com/minetest/minetest.git "$HOME/minetest" && cd "$HOME/minetest/games" && git clone --depth=1 https://github.com/minetest/minetest_game.git && cd .. && cmake . -DRUN_IN_PLACE=1 && make -j$(nproc) && sudo make install && minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"
My advice is to keep Minetest 5.8 installed through Software Center, then to have your portable copy. If you want a desktop shortcut to your portable copy, then you would go and create separately and move it to your desktop manually. For example if you had a copy of Minetest in a directory called minetest-5.6.1-portable, your file manager should let you make a shortcut to the file minetest-5.6.1-portable/bin/minetest.

For your convenience, I compiled a run-in-place copy of Minetest 5.6.1 myself and uploaded it to catbox.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
YellowCreeper
Member
Posts: 10
Joined: Wed Jul 17, 2024 18:33
In-game: YellowCreeper87

Re: Installing an spefic version of minetest on ubuntu [EDIT: Installed]

by YellowCreeper » Post

Blockhead wrote:
Thu Aug 01, 2024 14:21
YellowCreeper wrote:
Thu Aug 01, 2024 09:51
I was looking for a way to download minetest 5.5.1 on linux, I searched the internet a lot, finally found this site
http://archive.ubuntu.com/ubuntu/pool/u ... /minetest/

but there wasn't a 5.5.1 on this list, so I decided to install 5.4.1 instead

[talking about extracting the files ...]
This website is actually the place* where package manager fetches packages for you when you use Software Center, apt on the command line, etc. (for things that aren't snaps, flatpaks or AppImages).

*maybe not the exact website if you use a mirror, but laid out the same way.

The reason there is a limited number of versions is because Ubuntu is a "stable release" distribution of Linux. Every 2 years a new Long Term Support (LTS) version of Ubuntu comes out and only then does Minetest update. 5.5.x got skipped because it released in between LTS versions of Ubuntu.

The files you downloaded were not actually zip files, but they would have opened in the same program that you use for zip files and other "archive" files. Archives are files that fit other files inside so they are easy to download, and often smaller than the files that they are made of (using techniques called "compression").

The archives are actually "deb" files; deb is short for Debian, which Ubuntu is based on. You experimented with extracting them, but they are not made to be pulled apart like that. deb files are made to be installed. Usually this is done in a terminal with a command like:

Code: Select all

sudo dpkg -i minetest-whatever-version.deb
but you can use a graphical installer like gdebi (find it in Software Center).
YellowCreeper wrote:
Thu Aug 01, 2024 09:51
I need a way to install 5.4.1 and if it's possible, have both 5.8 and 5.4.1 version
can anyone help me to do this? Thanks.
Here is where it gets tricky:

The Minetest versions for Windows and macOS are usually available in their own directories ("folders") like this, but on Linux it is typical to install through a package manager. A package manager install is usually convenient to get things like a desktop icon. But since installed packages are so common on Linux, it's actually hard to get a "portable" copy of Minetest.

Also, you might think that if you extracted out Minetest from the deb packages that you downloaded that it would run well. This isn't the case. When a copy of Minetest is compiled from the source code, it's either made to "run in place" or not. All the copies you can download off the ubuntu archive site (archive.ubuntu.com) are set to not run in place; they are made to be installed and only properly work that way. There aren't any up to date versions for Linux/Ubuntu on the Engine Builds section either I think.

How do you get a copy of Minetest that is a "run in place" copy? Well, you can compile it from source. I would recommend for you the [Debian / Ubuntu] 1-line script: install Minetest Git instructions 'For "portable" installs (I'll copy it here):

Code: Select all

sudo apt-get update && sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev && git clone --depth=1 https://github.com/minetest/minetest.git "$HOME/minetest" && cd "$HOME/minetest/games" && git clone --depth=1 https://github.com/minetest/minetest_game.git && cd .. && cmake . -DRUN_IN_PLACE=1 && make -j$(nproc) && sudo make install && minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"
My advice is to keep Minetest 5.8 installed through Software Center, then to have your portable copy. If you want a desktop shortcut to your portable copy, then you would go and create separately and move it to your desktop manually. For example if you had a copy of Minetest in a directory called minetest-5.6.1-portable, your file manager should let you make a shortcut to the file minetest-5.6.1-portable/bin/minetest.

For your convenience, I compiled a run-in-place copy of Minetest 5.6.1 myself and uploaded it to catbox.
Thank you so much for information, I ran the 2nd code, but How about 5.5.1 version? How to install that version and if possible having it with my already installed 5.8.0 ?
A normal creeper from earth. Interested in gaming

User avatar
YellowCreeper
Member
Posts: 10
Joined: Wed Jul 17, 2024 18:33
In-game: YellowCreeper87

Re: Installing an spefic version of minetest on ubuntu

by YellowCreeper » Post

Also i ran the codes but nothing happened, I couldn't understand
A normal creeper from earth. Interested in gaming

Post Reply