LinuxQuestions.org
Visit Jeremy's Blog.
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 Squeeze
Posts: 5,788

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Maybe the Debian New Maintainers' Guide can help. See Chapter 3, Modifying the Source.
 
Old 08-23-2012, 11:26 PM   #3
odiseo77
Senior Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,013

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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
odiseo77
Senior Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,013

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

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 11:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration