LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2007, 02:03 PM   #1
hendoc
Member
 
Registered: May 2006
Location: Conroe, Texas
Distribution: Ubuntu 8.10 Intrepid Ibex
Posts: 41
Blog Entries: 1

Rep: Reputation: 15
updating apps


I don't know how to update an app in Ubuntu Feisty. The command line either says "command not found" or "the update command takes no arguments". It tells me my Frostwire is old, but I have been unable to do anything about it. Could someone maybe give me a simple explanation for a not total newb, but still newb?
 
Old 09-16-2007, 02:39 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
What exactly are you trying to type in? If you're using the shell you have to make sure to enter the command in exactly. It sounds to me like you're just typing in 'update', which is incorrect and means you're probably calling up the wrong program.

The proper command is 'apt-get', with 'update' being the subcommand that refreshes the list of available programs. It usually goes like this:

'sudo apt-get update'
'sudo apt-get install <package>'
'sudo apt-get remove <package>' (to uninstall)

And to search for a package:

'apt-cache search <keyword>'

If there's a new version available, it will install it. If not, it will tell you that you already have the newest version. If you get a package-not-found error, then you may not have the right package name. Use the search pattern to locate the correct package to install (do note that search is apt-cache, not apt-get).

Actually, it's far easier just to use one of the graphical package installers. I prefer synaptic.
 
Old 09-16-2007, 02:46 PM   #3
hendoc
Member
 
Registered: May 2006
Location: Conroe, Texas
Distribution: Ubuntu 8.10 Intrepid Ibex
Posts: 41

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Ok That's what I needed to know. I'll just use the synaptic package manager. Thanks for taking the time to help me.
 
Old 09-16-2007, 08:58 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
You can get a recent Frostwire from here:
http://www.getdeb.net/

download to your computer and install with sudo dpkg -i [filename]
 
Old 09-16-2007, 09:45 PM   #5
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by David the H. View Post
What exactly are you trying to type in? If you're using the shell you have to make sure to enter the command in exactly. It sounds to me like you're just typing in 'update', which is incorrect and means you're probably calling up the wrong program.

The proper command is 'apt-get', with 'update' being the subcommand that refreshes the list of available programs. It usually goes like this:

'sudo apt-get update'
'sudo apt-get install <package>'
'sudo apt-get remove <package>' (to uninstall)

And to search for a package:

'apt-cache search <keyword>'

If there's a new version available, it will install it. If not, it will tell you that you already have the newest version. If you get a package-not-found error, then you may not have the right package name. Use the search pattern to locate the correct package to install (do note that search is apt-cache, not apt-get).

Actually, it's far easier just to use one of the graphical package installers. I prefer synaptic.
to upgrade an app it is
sudo apt-get -u dist-upgrade
 
Old 09-17-2007, 07:05 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Excuse me? dist-upgrade upgrades the entire distro (from Feisty to Gutsy, for example), installing and uninstalling packages as needed to match the new version's requirements. It's something you should need to do only very rarely, and I doubt very highly that that's what the OP wants here. To upgrade a single package, you simply refresh the repository and re-install the new version over the old one.
 
Old 09-17-2007, 06:48 PM   #7
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
I used to do that all the time on debian and ubuntu without a problem
 
Old 09-17-2007, 07:16 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Didn't you mean apt-get upgrade instead of dist-upgrade? That would certainly make a lot more sense.
 
Old 09-17-2007, 07:54 PM   #9
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
I forget which website, will post it if I find it, says its better to run apt-get -u dist-upgrade then apt-get upgrade
 
Old 09-18-2007, 12:24 AM   #10
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The main difference between upgrade and dist-upgrade is that dist-upgrade will remove packages, as well as install them. So you can really hose your system if you don't carefully observe what's it's doing when you run it. I know, because I've been there and done that. Had my entire kde environment removed, to be exact, and it was a nightmare figuring out how to get my installation back in order because of all the library dependencies involved. Try to install A and it removes B, etc.

'apt-get upgrade' won't leave you in situations like that, because it will only install or upgrade, never remove. It will simply skip any package update that involves removing a dependency.

I personally start by entering dist-upgrade, look very carefully at what it wants to do, and decide if it's safe to let it run. Often I have to back out of it and run a regular upgrade instead. Then I'll go back and handle any remaining package updates manually one-by-one, determining if it's safe to let it uninstall what it wants. Usually it's ok to say yes, because most of the time it only involves removing an old version of a library and installing an updated one with a new package name, but sometimes it wants to remove something important, and I have to let it wait until the proper dependencies get sorted out, usually by the next time I run the update.
 
  


Reply



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
Exclude updating apps software using yum jojojo Linux - Newbie 1 06-12-2006 02:32 PM
Updating Apps srisner Linux - Software 0 12-23-2004 08:17 AM
Slack 9.1 - PHP apps can't access MySQL but Perl Apps can tallship Linux - Software 1 06-13-2004 08:41 AM
Already installed apps not loading after rpm installer for other apps toastermaker Linux - Newbie 11 11-17-2003 11:25 AM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:09 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