LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Shortest command to calculate the sum of a column of output

Posted 06-02-2010 at 06:27 AM by bittner (Notes on Linux)

I had to calculate the Installed-Size for a .deb control file recently. Here is the solution I came up with:

Code:
dpkg-deb -c mypackage.deb | sed -e 's/.*root\s*//' -e 's/\s*2010-.*$//' | xargs | tr ' ' + | bc
What it does? The code tries to construct a calculation string and feeds it to the command line calculator bc as follows:
  1. use dpkg-deb to get the file size information out of the Debian package
  2. sed away all characters before and after the
...
LQ Newbie
Posted in Uncategorized
Views 5062 Comments 2 bittner is offline
Old

Howto build your own Debian repository

Posted 06-01-2010 at 05:04 AM by bittner (Notes on Linux)
Updated 06-07-2010 at 07:08 AM by bittner (added reference (background reading))

If you write software for Linux and you write them for Debian systems (Debian, Ubuntu, and others) you may want to provide your software as .deb installation packages. And one day eventually you will want to set up a repository so others can download and install your software without fuzz.

If you look at a Debian mirror (e.g. http://ftp.debian.org/debian/) you will find out one day that packages and meta information is split up into two main directories on the root level:
  • dists
...
LQ Newbie
Posted in Uncategorized
Views 13923 Comments 1 bittner is offline
Old

Debian forums: I hope I get banned.

Posted 05-23-2010 at 12:26 PM by Mr-Bisquit
Tags banned, debian, wtf

I'm sorry if speaking up for someone and against an asshat isn't acceptable to you. I'll gladly take being banned to keeping my mouth shut.
Member
Posted in Uncategorized
Views 887 Comments 3 Mr-Bisquit is offline
Old

Howto's

Posted 05-03-2010 at 03:05 PM by Mr-Bisquit

http://forums.freebsd.org/showthread.php?t=13827

http://forums.debian.net/viewtopic.p...=27227&start=0
Member
Posted in Uncategorized
Views 676 Comments 0 Mr-Bisquit is offline
Old

debian

Posted 04-24-2010 at 06:37 AM by Mr-Bisquit

I was on the forums as sossego; but, since I have a tendency to be emotional and not much on censorship, I have been banned from there.

It was a nice ride.
however, I really do suggest people use Debian because it can be scaled.
Member
Posted in Uncategorized
Views 582 Comments 3 Mr-Bisquit is offline

  



All times are GMT -5. The time now is 08:59 PM.

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