LinuxQuestions.org
Visit Jeremy's Blog.
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 10-21-2015, 01:07 AM   #16
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762

Quote:
Originally Posted by gapan View Post
There's still the matter of creating the .tbr packages in the first place of course.
Ok, so in that case I have added "experimental Brotli support" to fmakepkg and mkpkg (again you need the bro executable installed). I set the Brotli quality level to 5. In my own quick tests this generally gives you better than BZip2 default compression but takes around the same time as GZip default compression.

EDIT: I have updated the scripts again so that you can easily tweak the quality level. Simply set the variable BROTLI_QUALITY to your desired value, e.g. to use the super fast Brotli level 1.

Code:
export BROTLI_QUALITY=1
Note: Brotli quality level 1, is generally better than GZip 9 but much faster!

Last edited by ruario; 10-21-2015 at 01:32 AM.
 
Old 10-21-2015, 01:14 AM   #17
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by gapan View Post
There's still the matter of creating the .tbr packages in the first place of course. For now, you can convert existing .txz packages with a combination of:
Code:
xzdec package.txz > package.tar
bro --input package.tar --output package.tbr
If you don't want to use my alternative makepkg scripts and/or want to do conversions. It is easier to do this:

Code:
xzdec package.txz | bro > package.tbr
or for a specific quality level:

Code:
xzdec package.txz | bro --quality 5 > package.tbr
No real need to make the intermediary tar package.
 
Old 10-21-2015, 04:46 AM   #18
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
Quote:
Originally Posted by Didier Spaier View Post
George, did you have a chance to try usm?
Not yet, but I have been aware of it and been meaning to try it.

Quote:
Originally Posted by Didier Spaier View Post
I guess it wouldn't be too complicated to just replace calls to {install,remove}pkg in it by calls to spkg instead? Just saying...
Yes, that would be trivial.
Code:
s/installpkg/spkg -i/
s/upgradepkg/spkg -u/
s/removepkg/spkg -d/
Quote:
Originally Posted by ruario View Post
Ok, so in that case I have added "experimental Brotli support" to fmakepkg and mkpkg...
Oh, that's great! Tried fmakepkg as a replacement for makepkg in my own scripts to create .tbr packages. Works as advertised!

Quote:
Originally Posted by ruario View Post
It is easier to do this:

Code:
xzdec package.txz | bro > package.tbr
Yeah, of course you're right. I just created all test cases for my tests for gzip/xz/bro packages with an intermediate package and I guess it kind of stuck with me.

Last edited by gapan; 10-21-2015 at 04:49 AM.
 
Old 10-27-2015, 02:55 PM   #19
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quite an interesting article on this subject https://blog.cloudflare.com/results-...menting-brotli
 
  


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
Google Glass rooted and hacked to run Ubuntu live at Google I/O jeremy Linux - News 0 05-21-2013 09:27 AM
LXer: Google Reader: Google Giveth and Google taketh away. Keep Calm and Carry On LXer Syndicated Linux News 0 04-09-2013 06:41 PM
LXer: Google Chromebooks: Are They Selling? Google Apps Partner Offers Answers LXer Syndicated Linux News 0 12-18-2012 06:01 PM
LXer: Oracle v. Google - Google Moves to Supplement Its Invalidity Defenses LXer Syndicated Linux News 0 07-12-2011 05:30 PM
LXer: Google Talk #1 – All about App Engine with Google’s Fred Sauer LXer Syndicated Linux News 0 09-06-2010 04:00 PM

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

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