Install command for .tar.gz
No need for command line until now. If this archive contains something to install in the system, then sudo would be useful at one point or another. Very often, such an archive contains software that must be compiled and then installed. Typically, what you then do is as follows:. As you see, only the step actually installing the program requires superuser rights; everything else happens just in your home directory, which you own. Like January said if the file. Your concept about sudo is wrong.
For more details, type man sudo in terminal. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 9 years, 3 months ago. Active 9 years, 3 months ago. Viewed 1. Improve this question. Community Bot 1. Add a comment. Active Oldest Votes. No need to use sudo to unpack the archive.
Type this in a terminal: tar -xzf archive. Typically, what you then do is as follows: tar -xzf archive-name. Improve this answer. January January When I run into this situation it is usually not something that needs to be compiled. Tarball def: Tarballs are a large collection of files assembled into a single archive file. The "tar" command is used to combine many files into a single file for archiving or easy distribution.
The "gzip" command is used to compress the size of a file so that it takes up less space. A tarball is very similar to a. Tarballs have extensions like ". In the open source community, they are used to distribute source code. If you find any software with a. By default, Ubuntu does not come with the tools required.
You need to install the package build-essential for making the package and checkinstall for putting it into your package manager. These can be found on the install CD or in the repositories, searching in Synaptic Package Manager or the command-line apt-get: sudo apt-get install build-essential checkinstall And since you may want to get code from some projects with no released version, you should install appropriate version management software.
Most of the software you'll generally want comes from released tarballs. These are just compressed archives with extensions like. The procedure will vary from program to program, so I can't help you here, but with the given packages the instructions they provide should work smoothly. Note: If you downloaded from source such as Git, SVN, or any other source repository then it is likely that the. You may be able to run the command autogen.
This command relies on automake and autoconf programs and will automatically build the configuration files and run the. After this step you can resume the later directions by running the command make. One nice thing about modern Linux distributions is they take care of dependencies for the user. That is to say, if you want to install a program, the apt program will make sure it installs all needed libraries and other dependent programs so installing a program is never more difficult than just specifying what you need and it does the rest.
Unfortunately with tarballs this is not the case, and you'll have to do it manually. It's this stage that trips up even some fairly experienced users who often give up in frustration for not being able to figure out what they need to get. You probably want to read about the possibilities and limitations of auto-apt first, which will attempt to take care of dependency issues automatically. The following instructions are for fulfilling dependencies manually: To prepare, install the package apt-file, and then run sudo apt-file update.
This will download a list of all the available packages and all of the files those packages contain, which as you might expect can be a very large list. It will not provide any feedback while it loads, so just wait. The apt-file program has some interesting functions, the two most useful are apt-file search which searches for a particular file name, and apt-file list which lists all the files in a given package. This newly-created directory will contain a file called "configure", which is a script to make sure that the program can be compiled on your computer.
To run it, run the command. If you run. You can check the developer documentation and in many cases. A very common options is to use. If this happens, the last line of output will be something like configure: error: Library requirements gobbletygook not met, blah blah blah stuff we don't care about But right above that it will list a filename that it cannot find often a filename ending in ".
What you need to do then is to run apt-file search missingfilename. You can then simply install the package using sudo apt-get install requiredpackage Then try running.
0コメント