To check the content of the variable we can simply expand it: The value of the PATH variable is a series of directory names separated by a :, where applications are searched by default when they are invoked without specifying their absolute location. For convenience we want to add this binary to our PATH. We can then move the application directory: $ mv firefox ~/.local/opt Adding the Firefox binary to our PATHĪt this point, the Firefox developer edition binary should be now ~/.local/opt/firefox/firefox. The directory doesn’t exist by default, therefore we must create it: $ mkdir -p ~/.local/opt There is not a standard per-user equivalent of this directory, so we will arbitrarily use ~/.local/opt as destination. By convention, self contained, global-installed applications are placed in the /opt directory. #Download firefox developer edition 32 bit installIn this tutorial we will install the application for our user only. The next step consists into placing the Firefox directory somewhere more appropriate in our filesystem. If everything go as planned, in the directory from which we executed the command, we will find a new “firefox” directory. To perform an extraction, -verbose (optional) to make the name of the extracted files be printed on the terminal when they are extracted, -preserve-permissions to preserve the files permissions, and -bzip2 to specify how the tarball should be decompressed. We used the latter with some options: -extract If not otherwise specified, curl writes its output to stdout (standard output), so we use a pipe | to redirect said output and use it as the standard input ( stdin) of the tar application. We invoked curl using the -location option which is needed to make curl follow redirections, and providing the download URL. | tar -extract -verbose -preserve-permissions -bzip2 All we have to do is to run the following command: $ curl -location We can download the application also from the command line, using the curl utility if we combine it with tar via a pipe, we can extract the tarball “on the fly”.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |