Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Weaning off of Update Manager in favor of apt-get

  1. #1
    Join Date
    Dec 2012
    Beans
    1

    Weaning off of Update Manager in favor of apt-get

    New to Ubuntu. Experienced with CentOS and yum. I have 12.04 LTS Desktop 64-bit for now and I'm trying to wean myself off of all the GUIs so that I can make a move to Server so as to boost my VM capabilities.

    Question: How can I tell from the CLI whether a Kernel update is available? The GUI Update Manager says I'm due for a kernel update (3.2.0.29.31 -> 3.2.0.34.37). But 'sudo apt-get -s upgrade' doesn't say the kernel would be upgraded. All it says is that linux-generic, linux-headers-generic, and linux-image-generic have been kept back. I've also tried 'sudo apt-get update', but it doesn't make any difference. I'm sure I'm missing the appropriate command here. If it weren't for Update Manager I wouldn't know that there are kernel updates available. How would I know? Thanks.

  2. #2
    Join Date
    Apr 2009
    Beans
    Hidden!

    Re: Weaning off of Update Manager in favor of apt-get

    Quote Originally Posted by hoodbu View Post
    New to Ubuntu. Experienced with CentOS and yum. I have 12.04 LTS Desktop 64-bit for now and I'm trying to wean myself off of all the GUIs so that I can make a move to Server so as to boost my VM capabilities.

    Question: How can I tell from the CLI whether a Kernel update is available? The GUI Update Manager says I'm due for a kernel update (3.2.0.29.31 -> 3.2.0.34.37). But 'sudo apt-get -s upgrade' doesn't say the kernel would be upgraded. All it says is that linux-generic, linux-headers-generic, and linux-image-generic have been kept back. I've also tried 'sudo apt-get update', but it doesn't make any difference. I'm sure I'm missing the appropriate command here. If it weren't for Update Manager I wouldn't know that there are kernel updates available. How would I know? Thanks.
    I believe that "linux-generic" is actually the kernel package. When you see the "linux generic has been kept back" message, that usually means that a new version of the kernel is out. For reasons that I am unsure of, apt-get upgrade won't get the kernel updates by default. But
    Code:
    sudo apt-get dist-upgrade
    should install them for you.

    Hope this helps,

    Mr. Hibba

  3. #3
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Weaning off of Update Manager in favor of apt-get

    if you install aptitude you can issue
    Code:
    sudo aptitude update && aptitude safe-upgrade
    and I believe that will upgrade your kernels OR if you want to stick with apt-get the command would be
    Code:
    sudo apt-get update && apt-get dist-upgrade

  4. #4
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Weaning off of Update Manager in favor of apt-get

    Code:
    man apt-get
    great tool
    aptitude is a good tool too.
    general advice is to not mix usage of these two,
    pick one and stick with it.
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  5. #5
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: Weaning off of Update Manager in favor of apt-get

    Quote Originally Posted by arpanaut View Post
    Code:
    man apt-get
    great tool
    aptitude is a good tool too.
    general advice is to not mix usage of these two,
    pick one and stick with it.
    That particular problem was fixed a long time ago. Mix and match is fine.

  6. #6
    Join Date
    Nov 2012
    Beans
    18

    Re: Weaning off of Update Manager in favor of apt-get

    To make things a little quicker, I've added the following to my .bash_aliases file:

    Code:
    alias updatenow='sudo apt-get update && sudo apt-get dist-upgrade'
    So, how many of you have added the following to your .bash_aliases file:..?

    Code:
    alias exiy='exit'
    Fat finger can be such a pain.

  7. #7
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Weaning off of Update Manager in favor of apt-get

    Quote Originally Posted by Mr. Hibba View Post
    I believe that "linux-generic" is actually the kernel package. When you see the "linux generic has been kept back" message, that usually means that a new version of the kernel is out. For reasons that I am unsure of, apt-get upgrade won't get the kernel updates by default. But
    Code:
    sudo apt-get dist-upgrade
    should install them for you.

    Hope this helps,

    Mr. Hibba
    The reason is that apt-get update only replaces existing package versions with new ones.

    On the other hand, kernel updates don't replace the old kernel, but instead add the new one alongside the old version. And to do that you need apt-get dist-upgrade.

  8. #8
    Join Date
    Apr 2009
    Beans
    Hidden!

    Re: Weaning off of Update Manager in favor of apt-get

    Quote Originally Posted by mcduck View Post
    The reason is that apt-get update only replaces existing package versions with new ones.

    On the other hand, kernel updates don't replace the old kernel, but instead add the new one alongside the old version. And to do that you need apt-get dist-upgrade.
    Ah, thank you, that makes sense.

  9. #9
    Join Date
    Sep 2012
    Beans
    49

    Re: Weaning off of Update Manager in favor of apt-get

    Quote Originally Posted by nothingspecial View Post
    That particular problem was fixed a long time ago. Mix and match is fine.
    We are using CentOS 5 in dev (RH in production) and mix and match YUM and apt-get with no issues to report.

  10. #10
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Weaning off of Update Manager in favor of apt-get

    Quote Originally Posted by arpanaut View Post
    Code:
    man apt-get
    great tool
    aptitude is a good tool too.
    general advice is to not mix usage of these two,
    pick one and stick with it.
    i'm still on 10.04.4 and I mix and match apt-get and aptitude all the time. It'll be fine

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •