Installing Stuff On Linux

I have been using Linux for about 6 or 7 months. I have fully migrated all of my systems to Linux. A roadblock for me has been the difficulty of installing software on Linux. For example, today I decided that I wanted to learn some Java and I went to the oracle website to install a JDK. To test my mettle I decided to only use the official documentation on the oracle website and I hit this ‘roadblock’. Below is where I got stuck

To install the 64-bit JDK Debian package on a Linux platform:

Download the required file:
jdk-21.interim.update.patch_linux-x64_bin.deb. For example jdk-21_linux-x64_bin.deb

Before you download a file, you must accept the license agreement. Anyone (not only root users) can install the archive file in any location having write access.

after looking at this for about 5 or 10 minutes I decided that I was not going to be able to figure this out without the help of a well put together webpage that walks you through the steps. What I was missing was knowledge that I needed to use the curl or wget command. Below is the command.

wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb

If somebody would be willing to look at the documentation, and tell me if the documentation is just bad, or if I am just bad and I should know that I need to use the curl or wget command and type https://download.oracle.com/java/21/latest/
prior to the file that they specify needs to be downloaded.

A couple times I have tried to click on the button that installs the *.tar.gz files and I never know what to do with them. I extract the files but I am then left with a lot a files that I don’t know what to do with them and whether or not I should make them an executable and try to run them.

What I am hoping to get out of posting this, is that the next time I try to install software that cannot be installed through flatpak or another package manager, I am able to read the documentation and get it installed. Feel free to critique my writing and give suggestions to me on how I could have made this post better.

System - Debian “bookworm”

I imagine you already have this figured out by now, so I won’t comment on installing deb packages directly.

One hint I would suggest is to use containers for this stuff. Basically flatpak expanded. That way you can mess around in a container so you have some level of isolation from your main system. Take a look at podman.

I have docker on a home server, and I have messed around with it a little bit but have found it kind of difficult because of port bindings and well, just set up really. That is a good idea though.

I really did never figure out how I should figure out how to install everything. After that I had to install Intellij which took me an hour or so, but it is installed but doesn’t work. Once again may I ask how to install deb packages directly?

I don’t know anything about Java, but installing deb packages should be pretty straight forward:

sudo dpkg -i <package_name>

For example, in your case that would be something like

sudo dpkg -i jdk-21_linux-x64_bin.deb

However, it’s possible that further steps are needed depending on the package. Those should come along usually in the site where you’re downloading it, or in some other form of documentation.

The commands that I needed to use to install the packages that I needed are above. What I am asking is how do I figure out without consulting the internet, to download stuff from the internet.

I have now tried to install Intellij and that is giving me a run for my money, but I was able to get it installed and for the most part working. I might have to go with what pacman said and install docker on my desktop to try and get some isolated enviroments I can mess around in.

Ok I really need some help now. How do I make all of these IDEs and even MSFTVS to work. I would use an IDE over MSFTVS but I am having a ton of trouble, and I do not know if the JDK needs to be added to the path to be able to run the code. Is there anyone here that frequently codes on linux and is good with software?

New update. I started following a new tutorial. This one is by “Bro Code” and is his Java tutorial. It seems that the Eclipse IDE is better than Intellij if you are on Linux. Eclipse had a much more comprehensible readme file, combine that with Bro Code having a good tutorial I am able to do some Java coding. Lol jk, as soon as I got it working I said “time to set up nvim”

Consider this:

First consider installing packages with your distro’s repo. You can usually search online to find the package name for your distro.

If that doesn’t work and/or your distro does have the version you want (for an app) next I would look to see if the version you want is on flathub (flatpak package). You can usually find the latest versions on flathub. If you are using an Arch-based distro you also have the AUR as a source of packages.

Good luck with your search and I hope this helps.