Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > How to make .rpm for fedora from SF.net tar.gz?

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-04-2009   #1 (permalink)
Just Joined!
 
BonniesTUX's Avatar
 
Join Date: Jun 2009
Posts: 10
How to make .rpm for fedora from SF.net tar.gz?

How to make .rpm for fedora from SF.net tar.gz?

I wanna install two or three packages from SourceForge, but these are in .tar.gz form not in .rpm.

I will appreciative if anybody can show/explain in details how to make .rpm files from .tar.gz?
or
provide a link to tutorials.

Thanks
BonniesTUX is offline  


Reply With Quote
Old 07-04-2009   #2 (permalink)
Trusted Penguin
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 4,067
Making rpms is not the easiest thing to explain. For just a few packages, look into a tool called checkinstall. You first compile your packages, but instead of running "make install", you use checkinstall to create an rpm. If you are going to be building many rpms, then I suggest you look at the Fedora RPM Guide.
daark.child is offline   Reply With Quote
Old 07-04-2009   #3 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
Those are the source files in a compressed format. You should be able to install the program using those files. First you need to uncompress them, using terminal commands.

You want the terminal to be "in" the same folder that the compressed file is in. The terminal defaults to your home folder, so if you put the file in a folder named "Downloads" (in your home folder), use this command.
Code:
cd ~/Downloads
cd = change directory
~/ = shorthand for your home directory

You then uncompress it with the tar command:
Code:
tar xvfz <file name>.tar.gz
It is the "z" in "xvfz" that tells it it is a gzip (.gz) file. If it is a bzip file (.bz2), then a j is used instead of the z.

There should be a file in the uncompressed folder with installation instructions. It could me called README or INSTALL. It usually involves three steps, the first two can be done as a regular user, but to do the actual installation you must have root privileges (use sudo or su).

1). ./configure (optional) - This will configure it to compile on your system.
2). make - This will compile the program.
3). make install - This installs the compiled program, so you first need to give yourself root privileges, using su or sudo.

To compile an application, there are a few programs that need to be installed first.

make - Most likely installed by default
gcc - The Linux C compiler

If you are compiling a driver, that requires the kernel source and/or the kernel headers.

I spelled everything out in detail for you, but it looks soooo much harder than it actually is. Post back if you have more questions.
__________________
Paul

Please do not PM me with requests for help. I will not reply.

Last edited by waterhead; 07-04-2009 at 12:43 PM..
waterhead is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:47 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2