LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-25-2004, 04:01 AM   #1
sachinnshah
LQ Newbie
 
Registered: Sep 2003
Location: Mumbai, India
Distribution: Lindows
Posts: 9

Rep: Reputation: 0
Create a RPM of webpages.


Hello Friends,

I want to create a rpm of webpages which i had created. And It's required some /etc config files.

How can i create it ?

Regards,
Sachin
 
Old 05-25-2004, 06:26 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
Hello,

So, you want to create an install package with some web pages?.
If so, what will it do when installed? Copy the webpages somewhere in a server?

An RPM is created so that something (some kind of software) is packaged so that it can be installed easily.

Can you explain a little bit more what are you trying to do?
 
Old 06-03-2004, 04:10 AM   #3
sachinnshah
LQ Newbie
 
Registered: Sep 2003
Location: Mumbai, India
Distribution: Lindows
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry for late reply

Actually,

I had created some web pages and some configuration files ( /etc dir ) for those pages.

Now, I want to distribute those thigs in rpm format. So, when user installed, webpages will be installed in apache default directory and configuration files in /etc dir.

Should It possible ?

Regards,
Sachin
 
Old 06-03-2004, 09:40 AM   #4
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
hi,
yes, it is possible, you can create a RPM package that installs (copies) all the files you want, in /etc directory or the place you prefer. you have to do first some things for creating it.

You have some howtos in

www.rpm.org

and

http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo

The steps to follow are next:

1. create the rpm directories, I think SOURCES, RPM, SRPM, tmp, SPECS
2. two config files, .rpmmacros and .rpmrc
3. and a spec file where you explain where you want to install those files,
4. put your sources in a bz file and compile it so it creates a installing package.

As it has to be installed as root there's not problem of permission when copying files.

It's not very difficult but it has some, easy to forget, little things that can bother you.

Hope this helps. If you have any question just ask.

Good Luck.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Rpm sjacobs Linux - Software 0 11-03-2005 08:19 AM
How to create devel rpm from source ? afaiq Linux - Software 5 06-16-2005 03:38 PM
how to create .rpm package shalin Programming 1 07-13-2004 11:12 AM
how to create RPM Package shalin Programming 0 03-10-2004 12:04 AM
How can I create an RPM file mayankjohri Linux - Software 1 04-16-2002 09:13 AM


All times are GMT -5. The time now is 07:17 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration