LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-25-2008, 12:21 AM   #1
bgmf65
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Smile Installing downloads


i have SuSe 10 and i want to add some programs to my OS that i have downloaded from the internet but i don't know how to. could anyone help me, please.

i'm not connected to the internet so i have to go to the library and download, then go home and do it. i know i have to use YaST control center to install the program. i first tell YaST the location of the file, which is on my USB, and i then try to install it through the software manager of YaST but it doesn't work. it just tells me that the file i'm trying to install isn't recognized as a linux program, or something like that, i'm going by memory here since i'm not at home.

any help would be grateful.

Brian

Last edited by bgmf65; 02-25-2008 at 12:23 AM.
 
Old 02-25-2008, 01:52 AM   #2
Eniac
Member
 
Registered: May 2006
Posts: 35

Rep: Reputation: 15
HI
yuor Program it's package (name_of_package.rpm)
if your package like this u can use first
must be root from command line with
su and put root password
and this change to where u package and use
rpm -Uvh Name_of_package

and the package install in very quick after that
u can use
which Name_of_Program

and when know where the program install use
rpm -ql link_for_file

and then u can know all info about u program
bay
 
Old 02-25-2008, 02:09 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I haven't used YaST, but if it allows you to install packages that way (specify their location), ok. The other way is to simply use rpm, the basic package manager, like Eniac already posted - just 'rpm -Uvh package.rpm' in the directory where the package is (or provide full path), as root, and things should get started. Either it installs the package or tells you why it cannot be done (for example if there are depending packages that are not installed at the moment, it tells you what packages you need to have installed prior to installing that package).

If it's an rpm package it might work just by double-clicking on the file icon in your file manager; at least that's how it works on Fedora, using the same system.

Note that the package needs to be in rpm format, and specifically packaged to SuSE, preferrably the exact version you're using. It won't install with rpm unless it's an rpm package, and if it's meant for some other rpm-based operating system than SuSE (or for different version), problems could easily rise even though the package might seem to install fine.

If it's some other package, like a .deb for example, there are some tools that can convert it to an rpm package (but I don't recommend them - rather try to find a SuSE .rpm). If it's an (compressed) archive, like .tar/.tar.gz/.tgz/.tar.bz2/.Z, then it's probably source code - in that case extract the package first using tar, then read the README and/or INSTALL files inside to learn how to compile it and what you need in order to do it.
 
Old 02-25-2008, 02:25 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
welcome,
if the files dont have an .rpm extension but .tar.gz you have to extract them first by
tar xvzf downloaded.tar.gz

If it is a source code package you will need a compiler like gcc and maybe some smaller helper tools like bison and flex.
Usually you find an INSTALL text file inside the extracted directory that you should read.

cheers, j
 
Old 02-26-2008, 12:59 AM   #5
bgmf65
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks

thankyou all for answering my new thread. unfortunately i'm still none the wiser. i either didn't understand what was written or i think i'm a novice compared to you guys, i'm self taught you see.

Eniac: we speak different types of english, i didn't understand what you were trying to indicate.

Bouncer: i'm familiar with rpm but i either don't have it with SuSe 10 or i can't find it and i believe i have searched everywhere. converting it seems like a hassel so i wont go there, but i don't think i have to anyway. it is a .tar/.tar.gz/.tgz/.tar.bz2/.Z, file and i extracted it to a local directory before trying to install it. i found only one file that looked like informing me on how to install it but it gave me no help whatsoever.

i think i'm just going to try another download site, maybe thats the problem, because i think i'm doing everything else right.

j_ray: i don't know what a compiler is
 
Old 02-26-2008, 02:21 AM   #6
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
1.
a compiler "translates" a program written in C, C++, Fortran,... to binary format that can be executed on your computer. Some programs are shipped in binary format anyway others come as source code and for these you need a compiler to create the binaries for your box.

2.
as SuSe is an rpm based distro you certainly have it installed on your box. But you must be logged in as root to install packages. So if you are logged in with your user name type
su
into bash, then enter root password, then run rpm commands...
 
Old 02-26-2008, 02:42 AM   #7
NoahT1BM
Member
 
Registered: Feb 2008
Distribution: Mandriva One 2008.1, Vector 5.8 SOHO, Knoppix 5.1.1
Posts: 50

Rep: Reputation: 15
I have also seen "File.run" before. What does this mean?
So is a .rpm file in linux like what a .exe file is in windows? What is the equivalent of "Add/remove programs" (from windows) in Linux?
 
Old 02-26-2008, 04:19 AM   #8
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
installing into linux

Dear whomsoever,
I might be stating the obvious but to install any 'package' it has to be in your 'home' space first, i.e., transfer it from the usb device first then install it using Yast or an rpm command avoid source code unless you have plenty of time and patience.
 
Old 02-27-2008, 12:50 AM   #9
bgmf65
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks

j-ray: for me to access YaST i have to be logged in as root, so i have that covered! as for su into bash, you have completly lost me. i don't know what bash is and i don't know where bash is. if you can help me there i should be ok because i can do the password and commands bit.

Fred Caro: thanks for your imput, i needed to know that.
 
Old 02-27-2008, 01:05 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by bgmf65 View Post
it is a .tar/.tar.gz/.tgz/.tar.bz2/.Z, file and i extracted it to a local directory before trying to install it. i found only one file that looked like informing me on how to install it but it gave me no help whatsoever.
You need to tell us specifically what you don't understand (and it's probably a good idea to tell us exactly what you're trying to install), because without basic information it's really difficult to help you.
 
Old 02-27-2008, 01:06 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
The core problem is that programs (and I use that term loosely) usually have 'dependencies' eg libraries (MS => .dll files), hence pkg managers like Yast were invented so that you ask it for the application (not a specific prog) and it installs it for you, automatically retrieving any dependencies as well.
For example, RH Fedora actually calls it's GUI installer 'Add/Remove Programs' (the install is YUM). It also uses .rpm files.
(you might want to read this short article about MS/Linux differences: http://linux.oneandoneis2.org/LNW.htm)

Anyway, the way you are going about it is likely to be hard work because of these dependencies.
You should try and get the CDs or DVD copy of a distro and use that, because it'll (Yast) be able to install stuff from there.
Ideally, of course, you should get your base system connected to the net (either at home or take round to a mate's house), life will be so much easier.

Other qns:
bookmark & read http://rute.2038bug.com/index.html.gz - a really good tutorial

When you are at the cmd line (equiv to cmd.exe) the program intepreting your cmds is known as a 'shell' of which there are several different ones.
The default one in Linux is called bash (bourne again shell; it's pun).
You'll also hear the cmd line environment called a terminal or xterm (X-windows terminal).
To switch to the root user properly, the cmd is

su -

don't forget the 'space then hyphen' bit, or you'll end up as the root user, but with your original user's personal settings (which are different to root's).
HTH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing downloads mattnorb Ubuntu 6 06-28-2007 10:22 AM
Installing downloads rosco99 Linux - Desktop 12 11-16-2006 09:14 PM
Installing downloads racicz Linux - Software 2 02-10-2006 07:38 PM
'Best practices' when installing downloads/programs? wmcase Linux - General 2 12-18-2004 06:30 PM
installing downloads godders48 Linux - Software 7 03-15-2004 04:23 PM


All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration