Stupid Newbie Q #3: How To Manually Install Software Fr. The Net???
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Stupid Newbie Q #3: How To Manually Install Software Fr. The Net???
Couldn't find this one in the forum search, though I thought for sure it'd be there- and I even read the manual....but to no avail.
How do I manually install software that I download off the net? i.e. like when I download a tar.gz or .deb file that is not found in the repository- and want to install it. I tried the old Winders(Windows) way- unzipping and double-clicking (Only in private, of course)....but I guess as most of you know...that does not work in LINUX.
I read in the manual where it says something about adding things to the repos- but they apparently have to be .pps or .ppa files or some junk....
So how does one install downloaded software manually in Ubuntu?
The easiest way to install softwares is the repository (seems you are using ubuntu)
Code:
$sudo apt-get install Software_name
But installing from tarball helps when your computer does not have internet.
Though , with them during configure you will often get some dependency missing .
That would mean install devel package for that through repo or tarball of that library.
There is also a work-around.
Code:
$sudo apt-get build-dep software_name
Also
'sudo dpkg -i Debian_file' will succeed if the software is packaged into just that file.
Usually installing softwares involve multiple debian files .
Last edited by sumeet inani; 07-29-2010 at 01:09 AM.
It's a simple archive containing the human-readable source code (the stuff that non-open source developers keep top secret ) for a program. You have to compile it.
Cybercastaway: To tell you the truth, I really don't consider Ubuntu a pain. It actually seems more intuitive in many ways than Windows- or at least very similar to Windows- so just by a bit of exploring and looking around, I can pretty much do what I need to do. Everything seems to work very smoothly- and if I do get stumped...there's always you guys!
You'd think I'd be more proficient at searching after 'putering for 11 years...I will definitely rectify that issue. Although I have to say, I do like to try and get some live info from people in the know, as a simple question specific to one's situation can often save a lot of time and trouble.
Sumeet: Yes, I discovered that early on- always check the repositiories/Synaptic/Software Center first. I had downloaded a tar.gz file because I couldn't find that particular application in Synaptic...but then after downloading it and not being able to install it, I ended up checking Software Center and found it there, so installed it that way and discarded my downloaded version. I just started this post so that if the situation ever arises where I can't find something in a repos and need to install it manually...I'll know how. (Gotta love the apt-get command, too!! It doesn't get any easier than that- trouble is, how does one know which programs/apps are available vie apt-get?)
Craig: Reference card- excellent! I love stuff that's short and sweet and too the point- and contains all the info right in one place!
MTK: Now that is useful to know.
Pixel: The instructions! LOL- yes, I sawe the doc in the tar.gz....but for some reason, never thought to read it!!! (and surprisingly, this issue is not dealt with in the Ubuntu-manual.org downloadable manual. (And not dealt with sufficiently at help.ubuntu.com -at least as far as I could tell in a quick perusal)
Gotta love the apt-get command, too!! It doesn't get any easier than that- trouble is, how does one know which programs/apps are available vie apt-get?
With the apt-cache command. For example if you are looking for the clasic first person shooter doom:
Code:
apt-cache search doom
Then among other packages you would see
Code:
prboom - clone of the legendary first person shooter Doom
For more information you could use apt-cache again:
Code:
apt-cache shwo prboom
For more information try googling for "apt howto".
Gotta love the apt-get command, too!! It doesn't get any easier than that- trouble is, how does one know which programs/apps are available vie apt-get?
Well, apt has a list of available packages, and you can see that list. If you prefer graphical user interface, something like Synaptic does the job. Simply start it up, and scroll through or search the very long list of packages. From command line, you can use apt-cache, for example if you were interested in packages having to do something with php,
Code:
apt-cache search php
might return something useful. If you get no results, try other keywords, or if you get too many results to fit onto your screen at once, use a pager or scroll your terminal up.
The .tar.gz compressed archives are not packages as such, but can be used as packages--simply place some instruction files inside the package along with the to-be-installed files, write a "package manager" that knows to look for and act based on those instructions, and you've got yourself a .tar.gz package. Or you can rename it as .mysticpackage and tell people it's a Mystic Package, altough it of course really isn't...
One extra option, if you really can't get around any other way, is to download a package for some other distribution and convert it to a package for your distribution, if it is possible. There are tools like "alien" that can (at least try to) convert a .rpm package to .deb for you, but of course a native .deb package would be better, and perhaps source code as well (you can always compile the source yourself and form a package from it that suits your distribution, if you've got the tools installed).
Edit: ah, took too much time to write, evo2 was faster Sorry.
By the way, Ubuntu (among some others) has implemented a way to get package names by typing in a command they provide, which may or may not be useful. For example if you'd like to run 'fancy-command', but it is not installed, typing
Code:
fancy-command
at terminal usually just tells you "command not found". On Ubuntu, if it finds the package which provides that executable, it in addition tells you the package name (and if I remember this right, the apt-get command to install it as well) that you'll get it from.
Cybercastaway: To tell you the truth, I really don't consider Ubuntu a pain. It actually seems more intuitive in many ways than Windows- or at least very similar to Windows- so just by a bit of exploring and looking around, I can pretty much do what I need to do. Everything seems to work very smoothly- and if I do get stumped...there's always you guys!
You'd think I'd be more proficient at searching after 'putering for 11 years...I will definitely rectify that issue. Although I have to say, I do like to try and get some live info from people in the know, as a simple question specific to one's situation can often save a lot of time and trouble.
That's what the messenger handles in the profiles are for.
Using your package management system for your distro is almost always the preferred way. Especially for newbies. How to use it should be well documented in your distro and probably on your distros website and user forums as well.
Baring that however.
.gz is a file archive format
$ man gunzip
$ man gzip
.bz2 is a file archive format
$ man bunzip2
$ man bzip2
.tar is a file archive format
$ man tar
.tar.gz is the combination of two archive formats. tar can normally handle both formats for you.
$ tar -xzvpf <file>.tar.gz
.tar.bz2 is the combination of two archive formats. tar can normally handle both formats for you.
$ tar -xjvpf <file>.tar.bz2
.tgz is shorthand for .tar.gz and other quirks depending on what, where, and when.
What you do with it after that is normally contained in the archive. Probably a README or INSTALL or other file that you can open in a simple text editor. A lot of times it's sources that need to be compiled and installed. But not always. And it can be a real headache if you don't have a development system installed yet, or know what you're doing. You can sometimes use your distros package management system to bundle it up from sources into a distro package. But that can be harder to do (or do right) than just compiling from source.
.deb is a file archive format specific to a package management system. You can install such a thing on a debian system with fairly simple commands.
# dpkg -i <package>.deb
But, if there's unmet deps and other things it can be more trouble than it's worth. And various others compiled against version X of something with compiler that differs from yours. And this is why you want to use your package management system. It has some built in layers of protection to keep you from shooting yourself in the foot. Not to imply bullet proof.
And then there's patches, repositories, and other joys of layering an LFS system over an existing system / distro. LFS being the short form of linux from scratch. Which might be worth reading about if you're truly curious about what happens under the hood. And otherwise don't have anything productive to do with your life.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.