LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-02-2010, 08:56 AM   #1
maus
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Rep: Reputation: 0
How to remove the relation of a file from a .deb package


Hi,

I'm using my own Debian .deb-packages for managing software updates on a small numbers of computers. So this question is about creating my own .deb Packages.

I got the Package A with the version 1.0 and 2.0. From version 2.0 on it's not necessary to keep track of the file fileB.txt. But I want to keep fileB.txt on the target system anyway.

Code:
Package A Ver. 1.0:
 - fileA.txt
 - fileB.txt

Package A Ver. 2.0: 
 - fileA.txt
If I install the new .deb package A. DPKG will remove fileB.txt.

How can I prevent dpkg to remove fileB.txt? In fact, dpkg should simply forget that fileB.txt was ever part of Package A!

Of course I could manipulate the dpkg file list, somewhere in the dpkg cache (file system). But how can I achieve the same effect within a package -> without manual manipulation on the target system?

Is there any key word in the control file? Or is there a special file, which lists "dependencies to delete"?

thanks for any suggestions.

maus
 
Old 02-02-2010, 09:10 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Try the "recommend" option in the control file. That means that dpkg doesn't actually install it, but won't remove it when it's there...
 
  


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
Can't install .Deb file or (package) Xzibit Linux - Newbie 28 01-16-2010 02:58 PM
how to remove a file or package wahaha Linux - General 4 08-12-2006 02:54 PM
Confused on how to remove a deb package with dpkg dr_zayus69 Debian 5 06-04-2006 02:02 PM
How to update missing/broken file in deb package pinknick Debian 3 01-15-2006 04:06 AM
How to package a .deb file from source? hkl8324 Debian 1 06-09-2005 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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