Results 1 to 8 of 8

Thread: removing update-manager & update-notifier

  1. #1
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    243
    Distro
    Ubuntu 20.04 Focal Fossa

    removing update-manager & update-notifier

    Hello all,

    I want to remove 'update-manager' and 'update-notifier' as I always update manually from the terminal and I'm sick of the graphical stuff popping up every time I boot the PC.

    but when I 'apt-get remove' them it wants to remove more packages than just those two...
    Code:
    The following packages will be REMOVED
      ubuntu-desktop ubuntu-desktop-minimal ubuntu-release-upgrader-gtk update-manager update-notifier
    Why is this? I thought if these were orphaned dependencies then they would be removed by running apt-get autoremove?

    Any advice would be appreciated!

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: removing update-manager & update-notifier

    ubuntu-desktop ubuntu-desktop-minimal are meta-packages. Removing any single dependency they include automatically removes those meta-packages ... but don't worry, it won't remove your GUI.

    You may want to know that do-release-upgrade won't work after you remove those things, so when you want to move to a different release and us that process (rather than the manual method), you'll probably want to reinstall update-manager. I don't think the other packages are needed.

  3. #3
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    243
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: removing update-manager & update-notifier

    Quote Originally Posted by TheFu View Post
    ubuntu-desktop ubuntu-desktop-minimal are meta-packages. Removing any single dependency they include automatically removes those meta-packages ... but don't worry, it won't remove your GUI.

    You may want to know that do-release-upgrade won't work after you remove those things, so when you want to move to a different release and us that process (rather than the manual method), you'll probably want to reinstall update-manager. I don't think the other packages are needed.
    Thanks! That's good to know.

    Just out of interest, I found this on the ubuntu documentation wiki...
    A metapackage, such as ubuntu-minimal or ubuntu-desktop, can have a long list of dependencies. So, when a metapackage is automatically removed by the removal or purging of any one, or more, of its underlying dependencies, all of the other packages that were in the metapackage's depends list are still installed on the system. If at a later time, there is an upgrade to the metapackage, the upgrade cannot occur, because the metapackage to be upgraded is no longer installed on the system.
    So if one of a meta-packages dependencies are removed, the meta-package is also removed, because if the entire list of it's dependencies are not installed, technically that meta-package is not installed because by definition the meta-package is it's dependencies.

    But what happens if you remove a meta-package directly? does that actually remove all it's dependencies?

    Or have I got that bit wrong?

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,016
    Distro
    Ubuntu

    Re: removing update-manager & update-notifier

    Try turning it off
    Code:
    gsettings set com.ubuntu.update-notifier no-show-notifications true
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,916

    Re: removing update-manager & update-notifier

    But what happens if you remove a meta-package directly? does that actually remove all it's dependencies? Or have I got that bit wrong?
    No it doesn't remove any dependencies. If metapackage A depends on package B, removing B will remove A. But, since nothing depends on A, you can remove metapackage A alone.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: removing update-manager & update-notifier

    Try it. See what happens. There's a reason that apt asks (Y/n). Use that to do nothing, after seeing what apt proposes.

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

    Re: removing update-manager & update-notifier

    A metapackage is a package that has no contents, but only some metadata like a version and a list of dependencies. When you remove a package (and this can be a metapackage or a normal package or even a virtual package, in a sense), every package that depends on it will be removed too. ubuntu-desktop is a metapackage designed to conveniently pull in a large collection of software that's considered default software on Ubuntu desktop systems. If you don't want all of it, you can't have ubuntu-desktop, but not having ubuntu-desktop doesn't rule out having the packages it depends on.

    When you remove a metapackage, nothing really happens (other than triggering the removal of any packages depending on that metapackage; they are not necessarily at the root of the dependency tree). The quote you found in the wiki is not very clear, but there's one important point to make regarding upgrades and metapackages. Kernel upgrades are distributed in a different way than upgrades to other packages. With most packages, a new version of the package is put in the repositories and automatically installed, overwriting the old version. In case of kernel upgrades, the new version is in a separate package and doesn't overwrite the old version. This is because sometimes the new version doesn't work on some hardware. The new kernel version is installed by providing an upgrade for a metapackage, which depends on the new kernel package. As the metapackage is upgraded, it automatically pulls in the new dependency, installing the actual upgrade. So whilst most metapackages are nothing more than a convenient way of installing a large collection of software at once, the kernel metapackages are required to get automatic upgrades.
    Last edited by Impavidus; February 13th, 2021 at 06:30 PM.

  8. #8
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    243
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: removing update-manager & update-notifier

    Well all that clears it up, I'm marking the thread as solved. Thanks to everyone who replied! there's some good information here.

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
  •