LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-23-2012, 02:38 PM   #1
Droidx
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
I want to replace a file in a deb package. how can I do that?


It is a repo on cydia.
I extract the deb package, and it give me data.tar.
I extract the data.tar.
it have a file two file, pultil and 20452.prl (perfer romaining list for cricket)

bascailly the pultil file's function is to move 20452.prl to a location on the iphone.

I want to put a metropcs prl instead of a cricket prl in that package instead.

Is there a easy way just to replace the prl?
Can I just extract the files, replace the prl and repackage it?

Thank you.

Last edited by Droidx; 08-23-2012 at 02:43 PM.
 
Old 08-23-2012, 10:43 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Maybe the Debian New Maintainers' Guide can help. See Chapter 3, Modifying the Source.
 
Old 08-23-2012, 11:26 PM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Code:
mkdir packagename
dpkg-deb -R package.deb packagename
The above commands will create a directory named 'packagename' and extract the contents of the package inside this directory. Do the changes you need to the fake file system inside the 'packagename' directory, and then use dpkg-deb again to build a deb package from the extracted package:

Code:
dpkg-deb -b packagename packagename_version_architecture.deb
(Of course, substitute 'packagename' for the real package name).

Regards.
 
2 members found this post helpful.
Old 08-26-2012, 06:19 PM   #4
Droidx
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
awesome, thank you alot alot alot. it works.
 
Old 08-26-2012, 07:02 PM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Good. Glad it worked.

You can mark the thread as solved in the thread tools above
 
  


Reply

Tags
dpkg-deb



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
How to remove the relation of a file from a .deb package maus Debian 1 02-02-2010 09:10 AM
Can't install .Deb file or (package) Xzibit Linux - Newbie 28 01-16-2010 02:58 PM
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 10:02 AM
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 05:55 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