LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2009, 01:02 AM   #1
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Rep: Reputation: Disabled
how do I update a program?


I am currently using Firefox 3.0.3 that I downloaded when I first started the Linux/Ubuntu adventure. The latest version is 3.0.1 (which I don't understand since .3 should be higher level than .1)

Assuming I wanted to upgrade now (which I don't), would I use:

Code:
apt-get upgrade firefox 3.0.1
Is that right?

All I would want to do is update NOT reinstall everything. I just want to download/install files that have changed or are new, and I NEED to keep the bookmarks and setup files (I know I can save these and restore, just don't want to) as they are now. I have never done upgrades in Linux, I have always downloaded full packages.

Thank you in advance.
 
Old 05-13-2009, 01:16 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can only upgrade, if the newer version is available in the repo's.
If you really need the newest version, you need to install from source or use the deb files if available.
 
Old 05-13-2009, 01:50 AM   #3
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
repo, thanks for your reply
 
Old 05-13-2009, 02:19 AM   #4
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
The commands for updating a version of Firefox you installed from the repository(!) are:
Code:
$ sudo apt-get update
$ sudo apt-get upgrade
It's maintained, so no need to worry about anything basic. Installing Firefox from the repo would mean to additionally do:
Code:
$ sudo apt-get install firefox
The problem is, since you seem to have installed an instance of Firefox by hand (why? - well, it's up to you), there most probably will be a conflict; I have no idea if installation from the repos will simply replace the binary (the program) or everything. So though I think you should be using the repo version (8.10 offers the latest Firefox - I'm using 3.0.10 on 8.04 directly from the repo right now!), I can't recommmend this if you're not willing to import your stuff and settings if need be...

M.

Last edited by MoonMind; 05-13-2009 at 02:21 AM.
 
Old 05-13-2009, 03:50 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Even if you install firefox from source, it will use the settings in your home directory from an older version.
I installed firefox 3.1b3 (beta) in /opt from source.
It uses all the settings, plugins and add-ons from a previous installed version using apt-get.
Off course to launch the installed version, you need to give the path /opt/firefox/....

Last edited by repo; 05-13-2009 at 03:52 AM.
 
Old 05-13-2009, 03:20 PM   #6
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
MoonMind, thanks for your reply.

Quote:
Code:

$ sudo apt-get update
$ sudo apt-get upgrade
how does apt-get know what to update if there is no file name (firefox)?

Also, I am famous for not finding stuff within "man" files, but I cannot find "apt-get update" as an option. I did see "apt-get upgrade".

thanks again
 
Old 05-14-2009, 12:35 PM   #7
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
apt-get update makes you get the latest version of the repository lists, apt-get upgrade does upgrades to your system according to your settings - mostly necessary and recommended upgrades, which should be fine. It's always a good idea to have your system up to date before installing new stuff, but that's not the main point: Anyhow, you need apt-get update in any case to get the latest version of a program that's in the repository. sudo is used on Ubuntu systems instead of being root (via su).

The line to get the actual Firefox was apt-get install firefox (in case of Ubuntu, start with sudo).

M.
 
Old 05-16-2009, 12:11 AM   #8
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Thank You for your replies. It was very helpful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a program to update-alternatives Mountain Linux - Software 14 06-25-2023 12:14 PM
Update your program... not Akonbobot Linux - Desktop 14 02-12-2009 12:17 AM
Update Program andy1.52 Linux - Software 1 02-14-2005 04:29 PM
update program? linuxtesting2 Slackware 1 12-06-2004 05:00 AM
How do I update a program? MOZ Linux - Software 1 01-21-2002 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration