LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-07-2012, 11:28 PM   #1
Ineed2know
Member
 
Registered: Dec 2009
Posts: 66

Rep: Reputation: 1
Question Linux/Ubuntu File Types


I have just installed Ubuntu 12.04. It is going to take quite some time to get to know this OS. Here's my question. Regarding the downloading applications for Ubuntu --- what file type do I need to get? I am seeing ".RPM" ".TAR" ".TAR.GZ" ".DEB" and ".SH". So which one is best to get? Thanks.
 
Old 05-08-2012, 01:04 AM   #2
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 241

Rep: Reputation: 24
To install a new program, run the command
Code:
sudo apt-get install program-name
. This will automatically download a package (RPM), check for dependencies, and install the "program-name". Tar is a file archiver, it works with the tree of directories, but without compression. For a compression, used the gzip, xz, bzip2 and more others. They compress an uncompressed tar archive and retrieve files *.tar.gz, *.tar.xz, *.tar.bz2, and so on. Typically, this files contains the source code of a program, and if you don't have a reason for making the program from sources, don't use it. Must have repositories. DEB-packages NOT compatible with Ubuntu. *.sh is a script file for executing by shell, for example, Bourne Against Shell.
 
Old 05-08-2012, 01:26 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,533

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I don't have a Ubuntu system handy, but I'd be *mighty* surprised were apt-get to pull in rpm's.

Go have a look at this page for some Windows-friendly advice re software installing.
 
Old 05-08-2012, 03:17 AM   #4
jan5134
LQ Newbie
 
Registered: Mar 2009
Location: pretoria,SA
Distribution: Centos/Ubuntu
Posts: 9

Rep: Reputation: 0
Smile

Hi,
Ubuntu uses .deb packages. If you want to install .deb packages you'll have to use "dpkg" program. The problem is that dpkg doesn't install the dependencies. Rather run 'apt-get update' (will get a list of all packages from the repo's )and then use 'apt-cache search Packagename'. If it is there, you can install it with 'apt-get install packagename'. apt-get sorts out all the dependencies. tar,tar.gz etc is normally if you want to compile from source.Good Luck
 
Old 05-08-2012, 04:02 AM   #5
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
you should use the ubuntu package manager as much as you can, this way you'll get updates and only have verified applications installed. The package manager(apt) can be used in different ways. command line using apt-get, aptitude, the synaptic package manager or the ubuntu software center.

If you are using a desktop edition you'll probably want to use the ubuntu software center. If you're working command line you should use either apt-get or aptitude, I'm not really sure what is recommended atm and both work fine.

if you have something that can't be found with these applications it's not in one of the repositories you are using, there are ways of adding a repository, you'll mainly use this if you want a specific set of applications that are maintained by someone else. or you can download the package on the internet, they come in .deb packages as mentioned before.

Once you've downloaded the right .deb package(keep in mind what your architecture is like 32(x86) bits or 64(x64)) and once you've downloaded the .deb you can just double click it and your preferred package manager will start to install the package. If you don't want to use a GUI you can run:
Code:
sudo dpkg -i packagename.deb
this will install the package in the same way as described before, only this time command line.

Package management is one of the key issues in the whole architecture, it makes managing installed applications easy and provides a way to use a specific branch type of software like stable and testing for example. Next to that there is the benefit of updates for all your software at once that ubuntu checks on itself.
 
Old 05-08-2012, 06:04 AM   #6
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 241

Rep: Reputation: 24
Yes, I was wrong. Just when I wrote my first post in this thread, I thought about something else.
 
Old 05-08-2012, 07:05 AM   #7
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
If you need to install new programs in Ubuntu 12.04 you will need to get these programs from the Ubuntus Software Center.
The guys in Canonical (The company behind Ubuntu) intent is to replace Synaptic with their Software Center.

If you want to download files they should be .DEB extension however is recommended install programs from your repository only.

Good luck to you.
 
  


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
[SOLVED] Conflicting type declarations between sys/types.h and linux/types.h Da Shi Cao Programming 3 09-13-2010 11:55 PM
LXer: Control of File Types in Ubuntu LXer Syndicated Linux News 0 04-15-2010 07:11 PM
sys/types.h & linux/types.h conflict while compiling johnnyhal Linux - Software 1 12-28-2008 06:39 PM
Linux file types dwarf007 Linux - General 1 01-06-2008 09:18 PM
Gnome, KDE, and linux file types Xristopher Linux - Newbie 1 09-24-2003 08:06 PM


All times are GMT -5. The time now is 09:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration