Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Installing basics, Learning to install programs as a newbie
zaclane42
 Posted: Mar 14 2016, 02:43 AM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 3618
Joined: 11-February 16









Hi,

So I've been using SL7 for a small amount of time but I still haven't figured out how to download applications from the internet. For example, one I need to install now is Code::Blocks, but I'm going to need to know how to do this for other things as well. So I go to their download page and click the link for the download they've specified for my Linux distribution: Fedora 64 bit. So I click the link and usually for these things I save them to my Downloads directory. It saves, in this case, a .tar.xz file (usually a .tar.gz and sometimes I see .rpm packages which I gather is just another format) with a package icon. So I'm wondering how I can install the application Code::Blocks from this package. I have the package but not the application. I've tried some things I found from the web, like in the terminal just doing sudo yum install Code::Blocks but that doesn't work. I should have the hang of this by now, I'm sorry for taking up your time for something that is so trivial, but I'm new and need to learn. Most of the material I find on the web for how to do these things doesn't apply to Scientific Linux which I know is a bit different and I'm not quite adaptable enough yet to figure out how to change their instructions to fit my needs.

Thanks so much,
Zac
PM
^
+X^N
 Posted: Apr 1 2016, 06:34 PM
Quote Post


SLF Member
***

Group: Members
Posts: 130
Member No.: 2581
Joined: 27-June 13









#zaclane42
Hello ,
an rpm file is an executable installer program for RedHat & Scientific Linux ;
it stands for RedHat Package Manager file https://en.wikipedia.org/wiki/RPM_Package_Manager.
These are found in various ways - search through this forum - myself and others have discussed these files .
"Using RPM to Install Packages" {kind of 'dry'} :
http://www.rpm.org/max-rpm/ch-rpm-install.html
&
To install "rpm _ "install or upgrade a package" || FedoraNEWS.ORG"
GraphicalUserInterface (GUI) "DoubleClick"
or
CommandLineInterface (CLI) :
http://fedoranews.org/alex/tutorial/rpm/1.shtml
QUOTE
All you have to know about RPM
by Alexandre de Abreu

How can I install or upgrade a package? Can I install an old one?

For simply install a package do:

rpm -i package.rpm

Where "-i" is the Install parameter and "package.rpm" is the RPM you're installing. You can add more parameters to the above command, try this:

rpm -ivh package.rpm

The "-v" is for verbose and "-h" for the hashing marks. It'll print some "#" when unpacking and then installs the package. You can use "--percent" instead of "-h" if you want.

The above command is maybe the first RPM command you've learned. Upgrading to a New package can be done in 2 ways, the Freshen way and by executing:

rpm -Uvh new-package.rpm

Note that the "-U" Upgrading option simple removes the old and installed package, then install the new one. The "-Uvh" can be used to install a package too, if the package does not exist on your system the new-package.rpm will be installed.

Now imagine the situation where the new version of Samba you've just installed is not compatible with your applications, what to do? Answer: Upgrade to the old version. You can call this a "Downgrade" if you want. The command for install the Old package will be:

rpm -Uvh --oldpackage Samba-old-version.rpm

Where "--oldpackage" option says that Samba package version is older than the one installed. The command will remove the installed version and then install the Samba-old-ver.rpm.


The file type ending in tar is a general linux file Tape ARchive - from the Unix world .
Furthermore , this can be compressed (zipped) via GNUzip https://en.wikipedia.org/wiki/Gzip.
..
Sometimes , the tar.gz [tarball]
https://en.wikipedia.org/wiki/Tar_%28computing%29 file is just a compressed usable (binary) software program ;
then you only need to uncompress it :
GUI : "Double Click"
or
CLI :
CODE
tar -zxf file.tar.gz

...
The tar.gz may need to 'compiled' to make a usable (binary) software program -
here is a short tutorial from 'nixCraft' - there may be other 'library' requirements :
"How to install Linux / UNIX *.tar.gz tarball files"
http://www.cyberciti.biz/faq/install-tarballs/
.
Best regards

--------------------
DELL Precision 470 Workstation Xeon 3.2GHz (x2) , 2GB ECC ram ;
DELL UltraSharp 2007WFPb (L) ips monitor
Dual boot :1st installed: WinXPPro & then SL6.4 x86_64 - via 2 'everything' DVD s { GRUB going into the SL6.4 partition } ;
Updated to 6.5 via DVD s

& Steelcase vintage / old-school stenographers seat (made in Grand Rapids , MI , USA)
PMUsers Website
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll