Results 1 to 6 of 6

Thread: How To Upgrade a .deb File

  1. #1
    Join Date
    Jan 2006
    Location
    Orlando, FL
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question How To Upgrade a .deb File

    So I've installed an application on 12.04 which just required me to download / install the file with one simple command:

    Code:
    sudo dpkg -i <some_packagae>.deb
    My question is now there's a new version of the software available. Does Ubuntu / Debian prefer that I remove the package 1st and then re-run the same command above but with the newer version or is it recommended / safe to roll the installation over the existing one?
    "It said install Windows 98 or better so I installed Linux..."

  2. #2
    Join Date
    Mar 2006
    Beans
    8,335

    Re: How To Upgrade a .deb File

    Remove and rerun.
    There is no greater religion than a truth.

  3. #3
    Join Date
    Jan 2006
    Location
    Orlando, FL
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To Upgrade a .deb File

    Lets say I installed the VMware package a year ago and I deleted the original .deb file used to install on my system...how can I know what the file name is that I have to remove using the 'dpkg -r' command?
    "It said install Windows 98 or better so I installed Linux..."

  4. #4
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,520
    Distro
    Ubuntu Development Release

    Re: How To Upgrade a .deb File

    Hi

    To get clues try something like

    Code:
    dpkg -S vmware
    Code:
    dpkg -l vmware
    Small L after dpkg.

    Code:
    dpkg -l | grep vmware
    Code:
    dpkg -l | grep virtual
    Searches like that can help.

    Kind regards
    Join us on irc at #ubuntuforums. For web chat see here

    If you believe everything you read, you better not read. ~ Japanese Proverb

    Do not read newspapers on an empty stomach ~ Russian Proverb ~ BrunoLotse

  5. #5
    Join Date
    Jun 2006
    Location
    Caracas, Venezuela
    Beans
    418
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How To Upgrade a .deb File

    If you know some part of the package name, you can execute:

    Code:
    dpkg -l | grep -i vmware
    It will tell you which packages containing the pattern "vmware" are installed on the system.

    You can also execute:

    Code:
    sudo dpkg -r vm<tab>
    And let bash complete the name or suggest a name from the installed packages matching the pattern.

  6. #6
    Join Date
    Jan 2006
    Location
    Orlando, FL
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To Upgrade a .deb File

    Thanks for the clues and help using dpkg!
    "It said install Windows 98 or better so I installed Linux..."

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
  •