Results 1 to 5 of 5

Thread: check for installed (objects?) via terminal

  1. #1

    check for installed (objects?) via terminal

    On ubuntu is there a way (from terminal) to print out a list of objects that can be removed using the sudo apt-get remove 'AppNameHere' command? Some of the software pop up on my show applications tab while others don't.
    Is the name for these objects applications? Since they don't appear under the tab that bears the name.

    Cheers

  2. #2
    Join Date
    Feb 2015
    Beans
    Hidden!
    Distro
    Ubuntu Mate 18.04 Bionic Beaver

    Re: check for installed (objects?) via terminal

    Quote Originally Posted by f3mto5econd1nter4ction View Post
    On ubuntu is there a way (from terminal) to print out a list of objects that can be removed using the sudo apt-get remove 'AppNameHere' command? Some of the software pop up on my show applications tab while others don't.
    Is the name for these objects applications? Since they don't appear under the tab that bears the name.

    Cheers
    Anything installed can be removed using apt or apt-get, though doing so may remove wanted applications as well due to dependency issues. I don't really comprehend exactly what you are asking for here.

    A possible help tip for you when using "apt" or "apt-get" with the remove option is to test first with a simulation only. To do this use the "-s" (simulation only) switch.
    For example if you want to remove "firefox" and check if anything else will be affected ...
    Code:
    apt-get remove -s firefox
    The "-s" (in bold text for clarity/visibility) causes the command to run as a simulation only, NOTHING will be removed but you will see what will happen before you run the command for real (without the "-s" switch).

    Just an extra note: the simulation switch (-s) can be used to test any action undertaken with apt or apt-get. I regularly use it with the autoremove option which in the past has caused some dependency headaches here; also with the install option to see what extra packages are being added when installing an application before I actually install anything.

    Hope that is of some help for you. Regards, yeti.
    Last edited by yetimon_64; October 9th, 2020 at 08:50 AM. Reason: sudo removed from command

  3. #3
    Join Date
    Jun 2016
    Beans
    2,132
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: check for installed (objects?) via terminal

    Quote Originally Posted by f3mto5econd1nter4ction View Post
    On ubuntu is there a way (from terminal) to print out a list of objects that can be removed using the sudo apt-get remove 'AppNameHere' command?
    Yes. How do you intend to use this list?

    Is the name for these objects applications?
    Not all of them are applications. I call them "deb packages". Not all deb packages install an application.

    @yetimon_64, the simulation doesn't need sudo.

  4. #4
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,699
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: check for installed (objects?) via terminal

    It's called a package. All (almost) software on Ubuntu comes in packages. There are a few styles of packages, but the main one is a deb package and apt only deals with those. A package contains software (applications, shared libraries, collections of icons or fonts, core components or the operating system, ...), along with instructions to install and remove them. Most applications are in a package with the same name as the application (or similar). Packages may depend on other packages, such that some packages can only be installed when certain other packages are installed too.

    apt assumes you're smart. If you tell it to remove some core component of the OS, it may give you a warning, but if you tell it to proceed it will assume you're brilliant and will just do what you tell it to do. So you can remove whatever package you want, but this may result in removal of other packages or your entire OS.

    To get a list of all installed packages you can use dpkg, which is a lower-level tool used by apt to do some of its work:
    Code:
    dpkg --list
    What you see in "show applications" are the applications that can be launched from the GUI. They must have a .desktop file that tells with what command the application can be launched and some other useful stuff, like how it can be instructed to open a particular file and what icon should be associated with it.

  5. #5
    Join Date
    Feb 2015
    Beans
    Hidden!
    Distro
    Ubuntu Mate 18.04 Bionic Beaver

    Re: check for installed (objects?) via terminal

    Quote Originally Posted by halogen2 View Post
    ...
    @yetimon_64, the simulation doesn't need sudo.
    You're right there, thanks; I put it in without thinking earlier as a habit with using apt/apt-get. The code box command is now changed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •