LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-15-2009, 03:10 PM   #16
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Talking A small penitence


/usr/bin/debextract

Code:
#!/bin/sh
# debextract - extract contents of Debian packages to a folder within the current folder
# (GPL) GPL 2009 Folken

# First we figure out the input
RAW_INPUT="$1"
DEBDIR=$(basename $RAW_INPUT .deb)

# Then extract the ar archive part
rm -rf $DEBDIR && mkdir -p $DEBDIR
cd $DEBDIR && ar vx ../$RAW_INPUT

# Next extract "control"
mkdir -p control
mv control.tar.gz control
(cd control && tar -xf control.tar.gz && rm -f control.tar.gz)

# Next extract "data"
tar -xf data.tar.gz && rm -f data.tar.gz
 
1 members found this post helpful.
Old 12-15-2009, 07:55 PM   #17
Ivshti
Member
 
Registered: Sep 2008
Distribution: Linvo
Posts: 132

Rep: Reputation: 43
Quote:
So you think it won't harm my OS...?
Don't do it. Chance exists to break something. Not the whole system, but something.

Use the proper methods to build packages, and install your compat libs from ubuntu itself... I think they had a "64" suffix, but not in the arch tag of the package, but in the basename. Don't know what the proper methods are, however, never installed Ubuntu (so I never needed to compile anything on it).
 
1 members found this post helpful.
Old 12-15-2009, 08:38 PM   #18
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Test them in a Virtualbox. It's worth the effort if you are worried about messing up your actual install.

Regards
 
1 members found this post helpful.
Old 12-15-2009, 11:23 PM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Rule of thumb: don't do anything you won't be easily able to undo.

In other words, before changing your system's state, make sure you'll be able to restore it to its previous state.

IMHO allowing this is one of the main advantages of Slackware's packaging system; but if you can get the same result by other means, why not?
 
1 members found this post helpful.
  


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
Please forgive me... bjharker General 6 05-11-2009 07:53 AM
!forgive me if this is wrong place pudhiyavan Linux - Hardware 7 04-19-2004 01:45 AM
I'm a newbie! Please forgive me wozzle Linux - Wireless Networking 7 03-07-2004 05:45 PM
Lindows.... what do you slackers.. think about it Linux_Inside Slackware 33 12-20-2003 12:42 AM

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

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