Announcement

Collapse
No announcement yet.

[SOLVED] Question about apt-get

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Question about apt-get

    Hi.

    I looked it up with man, but it did not have the answer I needed. Hopefully someone can help me out here.

    What command-line options should I use with apt-get to list the packages that are currently available for update? For those familiar with Red Hat, I am looking for the equivalent of "yum check-update".

    Thanks!
    Dai
    Registered Linux User: #281828 | Kubuntu User: #22280

    Kubuntu 18.04 LTS
    Dell Precision Workstation T5500 (Xeon @ 2.13GHz x 2 / 12 GB RAM)

    #2
    Re: Question about apt-get

    Open a console. Ensure that the package cache is 'up to date' with:
    Code:
    sudo apt-get update
    then issue the command:
    Code:
    sudo apt-get upgrade --simulate | awk '/Inst/ { print $2 }'
    This produces a listing of the packages (by name) identified by adept as upgradable.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Question about apt-get

      Originally posted by Snowhog
      After ensure that the package cache is 'up to date' with:
      Code:
      sudo apt-get update
      you can issue the command:
      Code:
      sudo apt-get upgrade --simulate | awk '/Inst/ { print $2 }'
      This produces a listing of the packages (by name) identified by adept as upgradable.
      Thanks! That's exactly what I need.
      Registered Linux User: #281828 | Kubuntu User: #22280

      Kubuntu 18.04 LTS
      Dell Precision Workstation T5500 (Xeon @ 2.13GHz x 2 / 12 GB RAM)

      Comment

      Working...
      X