LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2010, 08:25 AM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Rep: Reputation: 68
Creating a .deb file that extracts files to pre-determined directories


Howdy All,

I am wondering how I would go about creating a .deb file that would extract it's contents to two different folders. I would have one file directory that should be extracted to /opt and I have a second that should be extracted to the current user's home folder and /etc/skel - How would I go about doing this?

Regards,
~Jeff
 
Old 11-17-2010, 12:02 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
From a file system standards point of view packaged items should not be placed in a users home folder on install. Instead the documentation should point to say an example configuration file in /usr/share/doc/foo/bar.conf the user could customize and place in ~/ themselves. Some applications run user-centric configuration on application start or provide a post-install script the user can run at will. From a packaging point of view package installation is run by the root user so "current users home folder" would then default to "/root" which may or may not be what you want. And while you can easily create a "postinst" script in the control area of the package to find all user accounts on the system and install your file there it will be hard to ensure all accounts with 'UID >= 500' you find are actually used by humans or that they would want to use the package or would need the file. In short, from a practical point of view, I'd say you'd do like you would building any Debian package but without touching the "current users home folder".

//NTLB
 
  


Reply

Tags
deb file, debian



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
Creating a script to move or copy files into multiple directories below the files matthes138 Linux - Newbie 5 08-25-2009 04:57 PM
Webcam SPCA5xx(gspcav1 for kernel 2.6.11+) Pre-compiled Deb. Kingtiger01 Linux - Hardware 2 05-25-2009 11:41 PM
ftp video files - cron job extracts video info & posts to web page? muskiediver Linux - General 6 11-23-2006 08:41 AM
getting file-roller to open .deb files deepclutch Debian 8 02-13-2006 09:01 PM
linux program that extracts .rar file santasballz Linux - Software 2 03-12-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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