Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Based on https://help.ubuntu.com/8.04/serverguide/apt-get.html

The way to upgrade packages is to:

sudo apt-get update
sudo apt-get upgrade

However, I simply just want to upgrade one software for example ipython-notebook. I have used the following command to install this package:

sudo apt-get update
sudo apt-get install ipython-notebook

How do I just upgrade one package (e.g., ipython-notebook)?

share|improve this question
    
Install as with other answers or the upgrade-only option: askubuntu.com/questions/44122/… –  Dave C Mar 11 '13 at 17:01

2 Answers 2

up vote 5 down vote accepted

Simply invoke:

sudo apt-get install ipython-notebook

If the package is already installed in an older version, it is updated.

Note

  1. To reinstall an already installed package you can also invoke:

    sudo apt-get install --reinstall PackageName
    
  2. Most likely you want to refer to the current server guide: https://help.ubuntu.com/12.04/serverguide/apt-get.html

Additional question: "Does this reset config files?"

  • If you reconfigured a debconf configured configuration file by hand - your changes may be overwritten.
  • If you changed a "manual" maintained configuration file, it shouldn`t be touched by the update

Maybe you have also a look at How to check for modified config files on a Debian system?

share|improve this answer
    
Does that reset config files and the like? –  Kruug Mar 11 '13 at 16:56
    
@Kruug see updated answer –  user86064 Mar 11 '13 at 17:04

Re-run sudo apt-get install ipython-notebook. Apt will check to see if the package is installed before calling the install, it will see that the package is installed, and upgrade if necessary.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.