Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

.x Editor

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
millpond
Posts: 698
Joined: 2014-06-25 04:56

.x Editor

#1 Post by millpond »

Its my understanding that the .deb packages are in a special .x format that is somewhat uncommonly used.

mc can read it but not edit it.

Is anyone aware of any editors that can manage and EDIT - preferably in place - .deb packages?

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: .x Editor

#2 Post by millpond »

wizard10000 wrote:
millpond wrote:Its my understanding that the .deb packages are in a special .x format that is somewhat uncommonly used.

mc can read it but not edit it.

Is anyone aware of any editors that can manage and EDIT - preferably in place - .deb packages?
A .deb package is a tar archive which may or may not be compressed with one of several algorithms. Any GUI extraction tool should be able to get you in there, but if you want to manipulate .deb files, dpkg-deb is what you want. Reading the man page for dpkg-deb should prove helpful.

Hope this helps -
The tar file is compressed. Not obvious using Linux but clear under Win32 FAR. There I can edit within the tar, but not the archiver.

The idea is to script changes to the deb files *en masse* - but I need the versatility of zip,gzip or rar.

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: .x Editor

#3 Post by pendrachken »

use the package manager tools provided:

Code: Select all

## off the top of my head it should be something like this, see the man pages... and write a nice script.

dpkg-deb -R my.deb $TMP_FOLDER

$SCRIPT_EDITS

dpkg-deb -b $TMP_FOLDER  updated.deb

Your script should do housekeeping after every deb file you do anything with so you are not adding mare and more junk to the next repackage.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

Post Reply