2

enter image description here

This is what my program center looks like. Tried to get JDownloder2 from different sources, because non was working. Still, none is.

I want to get rid of them again.

I come from Windows. Here, i go to Programs and Settings and uninstall. If shortcuts remain, i follow them to the source, remove the source folder and then the shortcut. If i have a fancy day, i clean the registry afterwards.

I want an equal, always working way on how to do this in Ubuntu. There is software Center, however, clicking remove there does nothing. And it would probably remove at most one of them. Probably I got some of them by apt install, some by snap, some by downloading a deb, some by executing a JD2install.sh.

Afaik, i can not follow one of these shortcuts to the source folder and remove this.

sudo apt remove jdownloader2

also does nothing.

I want to understand how Ubuntu handles software installation, where the programs go, and if there is a general way to get rid of stuff, without having to remember using which package manager I installed sth.

It can't be that I use Ubuntu because I dev software but am too stupid to make everyday installations :D

Any help / guide / yt video / ... is appreciated.

2
  • 3
    This is a really good question which shows the downsides of having a ton of different, independent install systems (package manager, snap, other containers, npm, pip, cargo ...) Without going into details, you would need to find out how the individual instances of the program were installed, and then uninstall them as per the procedure of the relevant management system. Or you try the respective list function of the installers you used and uninstall whenever you see an entry of this program. This seems to be the most generic way.
    – emk2203
    May 6, 2022 at 8:28
  • 1
    Basically, there's no generic method to remove software in any OS. In Windows the uninstall method you mentioned works only if the application cared to provide the uninstall entry in Programs & Settings. There are applications that don't (especially older ones) and you can only uninstall them manually by deleting files & registry entries, which is pretty complicated. As for your problem, if you have shortcuts on the desktop, they must point to somewhere and you should definitely be able to trace them to the source folder.
    – raj
    May 6, 2022 at 15:16

2 Answers 2

4

There is no general way to remove software. How software is removed, depends on how it is installed. And Linux in general knows many different ways to install software.

  • In its simplest way, "installing" software can be a matter of copying the program files in a directory on the drive, and launching the executable from the directory where it resides. Uninstalling then boils down to deleting that directory.
  • In its most complex way, software can be installed by compiling it from the source code. Compiling means converting the source code readable by humans to machine code that is understood by your computer processor. The complexity usually does not result so much from the compiling itself, but from the need to make sure that all other components the software depends on, i.e., the dependencies, are already available on the system. For uninstalling, you depend on the kindness of the developper. If he/she did not provide an uninstall script, your only way of uninstalling will be to check where the install script installed the files, and manually remove these yourself.
  • Linux distributions automate package management for the user by providing precompiled and autoinstalling packages. This allows the user to install software that has been tested for the distribution by using the dedicated tools, from command line, i.e. using apt, or the older apt-get, or aptitude on Ubuntu, to graphical interfaces like Synaptic Package Manager, or modern and very easy interfaces like the Ubuntu store. Different families of Linux systems use their own systems: Debian and derivatives including Ubuntu and Mint use the APT system, Fedora and derivates uses the RPM package manager, Arch and derivates use the pacman package manager system. All these systems offer an easy way to uninstall the software that was installed using that system.
  • To make matters more complicated, "universal" package formats emerged in recent years. These are packaging formats developed to be used across distributions, i.e. package only once and install on many different linux systems, Ubuntu, Fedora, Arch, ... alike. Snap is developed by the Ubuntu developers and is enabled by default. Then there is also Flatpak. Both formats again allow for easy installation and uninstall using their dedicated tools, or, very easily, through the Software center if the Snap and Flatpak integrations are installed.
  • There is also the AppImage format, a third way for providing "universal packages". These are single files, which can be run in many Linux systems by making them executable. "Installing" means just downloading the file, to uninstall, just delete the file.

Of course, this is the general answer to the general question you stated in the question title and later in the body of your question. It is aimed to provide you some conceptual overview.

For your specific problem, i.e., having several icons in your application overview or application menu, you understand from the explanation above that how to remove the actual software, i.e., all program files, depends on the way you have installed the program. The menu entries are represented by little text files with the extension .desktop. If all else fails, you can remove these entries by deleting these little files, which are installed in specific directories, /usr/share/applications for applications installed using the APT system.

To remove these, it may be easier to install a graphical utility like Alacarte or Menulibre, which allow to remove and edit application menu entries.

4

There is no general way to remove software, because it depends on how software has been installed: you need to patiently find all the jdownlader versions installed on your system and uninstall them one by one.

A rule of thumb is: always rember in which way an app has been installed :-)

This is the way I would personally approach your issue. Don't do things you're not sure about.

Look for snap format

  • If snap version of jdwonloader has been installed, you should find it in the output of this command: snap list | grep "jdown". The first part of the command lists all snap packages installed in your system, the second part filters the list by the name of the app we want to find (that is jdownloader).
  • If an item related to jdownloader is found, remove it by: sudo snap remove <jdownloader_snap_name>, where <jdownloader_snap_name> is the name you found.

Look for deb format

  • If you installed the deb version of jdownloader, you can find its occurrencies running: dpkg -l | grep "jdown".
  • In the output you'll see, the second column represents the name of the deb package. If you identify a package that may be related to jdownloader, you can use its name to run: sudo apt autoremove --purge <jdownloader_deb_name> , where <jdownloader_deb_name> is the name you found.

Look for flatpak format

  • Similarly to snap, you can list all flatpak application by: flatpak list --app | grep "jdown"
  • If an item related to jdownloader is found, remove it by: flatpak uninstall <jdownloader_flatpak_name>

Installed by a script

In this case, you should find the original script and check if it supports also the removal of the application. Otherwise, your need to check where the install script installed the files and manually remove them.

Other suggestions

The icons you see in the application grid are files with .desktop extension and that are in the folder /usr/share/applications or /usr/local/share/applications or ~/.local/share/applications

  • Identify which files are jdownloader-related by: ls -l /usr/share/applications | grep "jdown"
  • Repeat the above command also for /usr/local/share/applications and ~/.local/share/applications
  • Using your preferred text editor, open the files you found and check the Exec line. It is useful to see where jdownloader binaries have been installed.
  • If binaries reside in /opt, you can remove the folder (and the related .desktopfile) without worrying.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .