What is the equivalent terminal command of Update Manager?

1,692

Solution 1

apt-get will NOT consider "suggested" packages as updates, while Update Manager does. It Update Manager also includes packages which apt-get would only install/upgrade with dist-upgrade. Additionally, I believe Update Manager maintains its own package cache which is only automatically updated daily and thus may not always be synchronized with the APT package cache.

To really check if you're missing out on updates, check the version of non-recommended updates Update-Manager wants you to install, and then do a dpkg --list | grep -i packagename to find out which version of the package is really installed on your system.

Solution 2

You can use this command:

sudo apt-get dist-upgrade

man page says:

dist-upgrade

dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. So, dist-upgrade command may remove some packages. The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for overriding the general settings for individual packages.

Share:
1,692

Related videos on Youtube

Elaine H
Author by

Elaine H

Updated on September 18, 2022

Comments

  • Elaine H
    Elaine H over 1 year

    I have revmob banners, full screens and popups integrated into my iPhone and iPad apps, with the latest revmob SDK & using placement ID. All are working fine.

    I now want to intergate revmob local notifications into these app as well. I am not a programmer, but am looking for a step by step guide to do this. Please assume the revmob SDK is already working fine in the app.

    The revmob 'local notifications' instructions say 2 things:

    NUMBER 1:

    [[RevMobAds session] scheduleLocalNotification];
    

    Do you put this into the appdelegate.m file under the line: didFinishLaunchingWithOptions

    NUMBER 2:

    - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
        [[RevMobAds session] processLocalNotification:notification];
    }
    

    Do you just copy this all in on its own near the end of the appdelegate.m file?

    NUMBER 3: Is there anything else you have to do to set up these local notifications not mentioned on the revmob website?

    Currently I have done points 1 & 2 above. When I did number 2 it gave me a warning but the app built ok on my iPhone. Waited 24 hours, local notification did not appear.

    I get this output in the simulator:

    [RevMob] Requesting local notification data.

    [RevMob] [LocalNotification] No Ads available for this device/country at this moment, or your App ID is paused.

    • jasmines
      jasmines almost 12 years
      Maybe dist-upgrade
  • dixoncx
    dixoncx almost 12 years
    But, i successfully updated Linux Kernal Image with dist-upgrade, which can not be updated with upgrade
  • ish
    ish almost 12 years
    that's true, I forgot about that since I usually compile my own kernels :)
  • jrg
    jrg almost 12 years
    -1, -y should never be used. It has the potential to break poorly made packages that require dealing with system-wide configs.
  • dixoncx
    dixoncx almost 12 years
    Thats true.. But nornally it will skip the prompt Do you want to continue [Y/n]?
  • dixoncx
    dixoncx almost 12 years
    I edited and removed -y :)
  • Marco Lackovic
    Marco Lackovic almost 12 years
    Won't dist-upgrade upgrade the system to latest nightly build available (alpha or beta)?
  • dixoncx
    dixoncx almost 12 years
    No, it will not.
  • Guru
    Guru over 10 years
    [[RevMobAds session] scheduleLocalNotification]; is deprecated...what's alternative ?
  • Diogo T
    Diogo T over 10 years
    So far there aren't alternatives :-/