![]() ![]() ![]() in our example, we installed Dropbox, and the only folder there is called. Okay, check to see what the extracted folder is called: ls -a (again, use the name of the downloaded file. Now, change to the /opt/ directory, extract the program, and remove the old file: cd /opt/ (e.g., for the Firefox Nightly 19.0a1 64-bit build, you would type sudo cp -x86_64.tar.bz2 /opt/) NOTE: use the name of whatever file you downloaded. (In these examples, I'll be installing the Dropbox Beta build, because I was going to install it anyway, so I figured that I might as well document the installation.)Īfter you've downloaded your file, (assuming that you saved it to Downloads,) type the following: cd Downloads Okay, this is a fairly challenging task for a beginner, but just follow my instructions, and it should be fine.įirst off, download the. tar.* files which have the code pre-compiled but packed into a tar file. You can also use checkinstall instead of make install. You may also need to install some dependencies if, for example, running configure prompted you with an error listing which dependencies you are missing. Usually, the three "classical" steps are. This file will contain the right steps to follow to continue the installation process. The file can be opened and read with the command: xdg-open INSTALL You can check if such a file exists from the terminal by using the ls command. Make sure you read a file called INSTALL, INSTALL.txt, README, or something similar if one was extracted. Now you need to open your terminal and navigate to that directory using the following command: cd /home/yourusername/Desktop/program-1.2.3 You can extract an archive by right-clicking the archive file's icon inside your file browser and pressing the appropriate entry in the context menu.Įxtracting the archive should create a new folder with a similar name. I have made it into a tool to automate these tasks.The first thing you need to do is extract the files from inside the tar archive to a folder. tar tail -n+\$PAYLOAD_LINE \$0 | tar xvįor information on this option you can see the man page of tar: man tar tar.bz2: tail -n+\$PAYLOAD_LINE \$0 | tar xjvįor. #it's inside a quote and $ needs to be printed, so you will need to use \įor. tar.bz2 etc.), you will need to edit the z option in the section: tail -n+\$PAYLOAD_LINE \$0 | tar xzv If you need to do it for other compression types (. You will have to add them in the printf section properly. You can run custom installation scripts too if you need. ![]() Running install.sh will extract the content in the current directory. If you save this file as t2s, then you can use it like this: t2s install.sh #you can add custom installation command hereĬat "$tmp" "$payload" > "$script" & rm "$tmp" # determine the line number of this script where the payload begins # this can be any preferred output directory ![]() Here's an example of how that works: #!/bin/bash As Etan Reisner says in his comment, the extraction/installation script knows how to cut its tail off to obtain the payload which was concatenated earlier. There is a Linux Journal article explaining how to do this in detail, with code for packing the payload, etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |