We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,983 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Software installation

Hi, I am new linux user, please tell me that Can we install .deb format on ubuntu 11.10 or 12.10 using sudo apt-get install??? other thing is that how to become super user in linux?

Regards,
M.Faisal

3
Contributors
2
Replies
55 Minutes
Discussion Span
3 Months Ago
Last Updated
14
Views
M.Faisal
Newbie Poster
2 posts since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

You can just specify the file name on the apt-get command line, as in:
sudo apt-get install filename.deb
As for switching to root, do this:
sudo su -

rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 52

Can we install .deb format on ubuntu 11.10 or 12.10 using sudo apt-get install???

In Linux, most software is installed through the package manager. This is an application that connects to a bunch of software repositories on the internet that host databases of .deb files (or .rpm in Red Hat variants). In the terminal (command-line window), you can install packages from the repositories via the command apt-get (or yum in Red Hat variants), which needs to be run as superuser. So, if you want to install GIMP (GNU Image Manipulation Program, i.e., a kind of open-source version of Photoshop), then you would open the terminal and write:

$ sudo apt-get install gimp

(note: the $ sign represents the prompt, you don't type that)

The sudo command means "superuser do". It allows you to execute one command (whatever follows it) with superuser privileges. It will ask you for your user password (same as when loging in).

The apt-get command is the program that can connect and fetch packages from the repositories. The option install speaks for itself. And the rest is a space-separated list of packages you wish to install (e.g., "gimp"). If you wish to remove a specific package (e.g., "gimp"), you would do:

$ sudo apt-get remove gimp

If you don't know the name of a package, you can always do a search that will return a list of suggestions:

$ sudo aptitude search gim    (note: missing 'p', 'gimp' will be suggested)

For .deb files however, you have to go one step lower in the chain of commands. The actual package manager utility is called dpkg (or rpm for Red Hat variants). If you have downloaded a .deb file and want to install it, you can do:

$ sudo dpkg -i some_file.deb

which will install the package some_file.deb.

However, all this command-line interfacing is not necessary in Ubuntu or most other distributions. If you have a .deb file, you should be able to just go in the file explorer (Nautilus), and click / double-click on the .deb file and it should trigger the installation through a little GUI window that pops up. If you want to install any other software from the repositories, you can simply find, in the main menus, the application called "Software Center" or "Synaptic Package Manager" (depending on the version of Ubuntu). That application will allow you to do the same as what apt-get does, but with the convenience of a nice little GUI where you can search for apps, read descriptions of them, and install/remove at will.

That pretty much sums it up.

mike_2000_17
21st Century Viking
Moderator
3,136 posts since Jul 2010
Reputation Points: 2,050
Solved Threads: 625
Skill Endorsements: 41

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0602 seconds using 2.65MB