Interesting piece of software.

Questions about other topics & discussing non-support related topics related to LMDE 2.
Forum rules
Before you post please read how to get help
lmintnewb2

Interesting piece of software.

Postby lmintnewb2 » Mon Apr 03, 2017 12:46 am

Well the other dy I was tweaking away at Lmde. Removed a bunch of supposedly unneeded xserver-xorg-video packages, well turns out I removed one I did need by removing one of its depends. So downloaded a .deb for it from the online Jessie repos to smartphone(do not currently have internet), transferred it over via USB cord and installed with "dpkg -i" and all was well again.

But while dorking around with this came across something called dpkg-repack. It lets you create debs from the software installed on a running system, puts them in your users /home. These can be installed to other compatible gnu/nix os's.

I used it to install ceni and its depends from my main OS, Debian 8.7 to Lmde. Note it doesn't automatically make debs for the depends of a package you're using it on. A person can use it to make debs of them too and install it all with "dpkg -i". Terminal will tell you if you're missing depends and which.

Someone may need to run "sudo dpkg --configure -a" if run into issues. Usage example where Im making debs of thunar and ceni with it

Code: Select all

 sudo dpkg-repack --arch=amd64 ceni thunar

and wham two shiny debs in /home.

You can use other architectures with it, used amd64 in the example cause that's what my system is.

User avatar
chrisuk
Level 4
Level 4
Posts: 499
Joined: Thu Jun 12, 2008 6:16 am

Re: Interesting piece of software.

Postby chrisuk » Mon Apr 03, 2017 2:29 am

You don't really need sudo, you can just use fakeroot... example: fakeroot -u dpkg-repack timeshift
Chris

Manjaro MATE - Antergos MATE - MX Linux - LMDE MATE

lmintnewb2

Re: Interesting piece of software.

Postby lmintnewb2 » Mon Apr 03, 2017 3:00 am

^Thanks and you're right. Oversight on my part. Do think it's a cool util. Is there anything open source people haven't done ? Yowza. :)


Return to “Other Topics & Open Discussion”