what is the best way to install minecraft on fedora?
You can download the jar file from Mojang, install java on Fedora, then write a small script or Desktop file to make launching it easier.
or
You can simply install the unofficial launcher via Flatpack which simplifies it for you:
flatpak install com.mojang.Minecraft
is there an official method?
O the website I wasn’t able to find the jar file, where I can find it?
Flatpak is sort of official WRT it’s use by Fedora. It comes already installed so you would just do the command that @alys listed above and voila, minecraft.
There’s no official installer from Mojang / Microsoft. You have to log into your account on the MineCraft website and go to your downloads and there’s a Linux download. That’s the jar file.
You can download the launcher here if you select “other”. Extract it to your desktop or wherever.
Or use the flatpak which will setup shortcuts etc automatically.
If I device to use the archive, how can I add it to the gnome app tray?
You’ll have to install an extension for that sadly. Might just be better to use the flatpak to be honest.
Ended up having to use a Flatpak, but I really dislike flatpaks. I already have all the necessary libraries installed on the computer as RPMs, so why should I have to download and install all those libraries all over again. Just to install a 33MB package & had to install nearly half a gigabyte of packages. Such waste of bandwidth and space, all for duplicated libraries.
Now, this was for my daughter’s desktop machine that doesn’t have near the usage of mine, so I could deal with it for one or two applications. But on my own system that’s just not acceptable. For that it’s either proper RPMs, or AppImages.
I’ve been using Prism to install MC and deal with multiple disparate instances.
Place the minecraft.jar file in ~/.local/bin/
and make it executable.
Get an SVG icon like this and save it in the same location.
Create a desktop entry for it:
cat > ~/.local/share/applications/minecraft.desktop <<EOF
[Desktop Entry]
Type=Application
Name=Minecraft
Exec=java -jar ~/.local/bin/minecraft.jar
Icon=~/.local/share/applications/minecraft.png
EOF
But yeah just use the Flatpak.
1. The official method.
Go to https://www.minecraft.net/en-us/download
Download the version that says “other”.
Extract the tar.gz file and inside it you will find a minecraft binary.
Place it wherever you want to and run it.
It should(i think) download its own java version according to its needs.
2. The Flathub method (not official but recommended)
You should be able to find Minecraft on GNOME software or KDE discover.
If you for whatever reason can’t find it or you don’t have KDE discover/GNOME software installed
a) make sure flatpak is installed
sudo dnf install flatpak
b) install the package directly from the flathub repo directly like this
flatpak install https://dl.flathub.org/repo/appstream/com.mojang.Minecraft.flatpakref
c) (optional) install GNOME software or KDE discover
3. Prism launcher (personal recommendation)
Prism is an opensource launcher that has things like mod management built in. Once you get used to it going back is hard.
It has a flatpak, appimage, generic binaries, and even a copr repo for fedora
here is my script you can just use this it will download, install and auto create a desktop file as well so its just running onw command which i provided in readme to install the launcher
That should work nicely, especially since I’m moving back to Linux Mint now.
It will work on all distros. But installing it through flatpak will be more secure and integrated in your system