LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-19-2010, 06:02 AM   #1
arunchandramohanty
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
creating rpm package from filesystem objects


Hi
I am able to create a solaris package and hpux package from directory structure in a specific format rather than spec file but the same i can not do on linux .
is there any way to do that . basically i can create the solaris package using command pkgtrans -s "source loc" "package location" all .we do not need any specfile here rather we create the package from the filesystem objects in a proper directory structures.
again pkgadd -d option will install the datastream from a package but i did not find the same on linux.

Can anybody help me on this how to do the same on linux.
 
Old 03-19-2010, 12:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you use a .spec file to generate the package then a minimal "just copy all files from the file-system" jumping from %prep to %files skipping everything in between could look like:
Code:
Name: arunchandramohanty
Summary: %{name}, short description.
Version: 0
Release: 1
License: GPL
Group: Utilities/System

%description
Description of purpose.

%prep -n %{name}
mkdir %{name}
cd %{name}
find /home/%{name} -maxdepth 1 -type f -printf "\"%p\"\n" 2>/dev/null > filelist.log

%files -f /home/%{name}/redhat/BUILD/fscopy/filelist.log

%changelog
* Fri Mar 19 2010 %{name}
- Log line.
If you don't fancy doing that then just create a tarball with the paths and files you need.
 
  


Reply



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
creating rpm package javimd786 Linux - Newbie 1 01-05-2010 01:02 PM
Creating an RPM for a package for ease of maintenance... Alexvader Fedora 7 11-26-2009 03:04 PM
Error while creating RPM package kavinsiva Linux - Newbie 3 08-21-2009 06:54 AM
problems in creating a rpm package gobi_dgm Linux - Software 1 09-18-2006 05:28 AM
Creating an RPM package? WeNdeL Linux - Software 3 03-05-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 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
Open Source Consulting | Domain Registration