LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2012, 10:47 PM   #1
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
Post Make a DEB package.


Now before you go grab you pitch forks and torches; this is some questions I dont see answered on normal tutorials. Here they are in order from most important to least:
1. What to Put In The Removal/Instalation scriprts
2 What executable number to give them and how (chmod 700 ./prerm.sh was my closest guess)
3. How to Make a Directory in ~/

Magically I just learned how to implement tags in my program so foo --remove is no longer a problem.
Help Please? PLEASE?
 
Old 01-09-2012, 06:38 AM   #2
jb_gpk
Member
 
Registered: Dec 2010
Distribution: Debian
Posts: 30

Rep: Reputation: 13
Hello!

Quote:
1. What to Put In The Removal/Instalation scriprts
there is no secret, install all what your program depends to work: binaries, config files, static/shared libs, directories, etc.
and for removal, remove all that is relative to your program. Do not remove anything that may be being used for another programs.

Quote:
2 What executable number to give them and how (chmod 700 ./prerm.sh was my closest guess)
in fact you should ask yourself:
who can use my program?
it can damage the system?
who should have permission to remove the binaries?
who should be permitted to modify the config files?
based on the answers you can set the permissions well.
if you don't know answer some of this questions,or if you want some tip, look on your system for an similar program and see what permissions it have set.
Quote:
How to Make a Directory in ~/
the ~/ directory is just where the environment variable $HOME points to.
 
1 members found this post helpful.
Old 01-09-2012, 11:07 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
All you should need to know to make Debian packages the right way should be found in the Debian Maintainer's Guide.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to see when a package (.deb) was installed? ravedog Linux - Newbie 6 06-10-2010 03:50 PM
Could some one test my deb package? jabka Debian 4 12-06-2007 03:06 PM
How to make deb package chrisstooss Debian 6 09-16-2005 05:21 PM
the last installed deb package, how ? ag2uki Debian 7 08-15-2005 07:44 AM
help with deb package on Xandros 3.0 xiongnu Debian 2 06-08-2005 11:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:36 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