LinuxQuestions.org
Review your favorite Linux distribution.
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 11-09-2014, 05:42 PM   #1
qweasd
Member
 
Registered: May 2010
Posts: 613

Rep: Reputation: Disabled
How to replace the official slackpkg repo?


I am looking for a good way to replace the official slackpkg repo. The goal is to have my own private repo which is similar, but not identical to the official repo, and is accessible via slackpkg just as the official repo would be. I think I am basically on the right track, but I'd like any pointers you can offer. Here's what I did so far:

I copied the basic folder hierarchy found below http://mirrors.kernel.org/slackware/slackware64-14.1/. I didn't copy everything, but just populated it with folders slackpkg expects to find. I used Alien's gen_repos_files.sh to generate the lists, using my own signing key. I had to run it several times: once for the repo root and once for each subfolder (slackware64, patches, etc.). Then I changed the slackpkg mirror.

I found that slackpkg checks signatures against ANY key on root's keyring, so as soon as I added my key there, my signatures were accepted. I am assuming I could have a repo where some packages are signed by, say, PV, and others by me, all without modifying slackpkg. [Edit: don't listen to me. /etc/slackpkg/slackpkg.conf has a SLACKKEY variable, which seems to be the right way to change the repo signing key.] My sandbox had only a single file, and things seemed to work (I tried search, update, and upgrade-all).

What I basically want now is to compare this approach to what others have done, and hopefully learn a better way to do it. Note that I have little interest in using other packagers at this moment (like slackpkg+), since my goal is very specific: replacing the main repo.

Last edited by qweasd; 11-13-2014 at 03:37 PM.
 
Old 11-10-2014, 01:12 AM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
you can use slackpkg+ and set priorities on repos, so no need to replace everything
there are several tutorials/howtows on how to add a own repo to the list or repos,
I think microlinux is a good starting point to search for information on how ot do this
 
Old 11-10-2014, 05:07 AM   #3
EYo
Member
 
Registered: Jun 2009
Location: Cloverdale, northern california
Distribution: Slackware 14.2
Posts: 180

Rep: Reputation: Disabled
Friendly manuals

grep file /etc/slackpkg/mirrors
Quote:
# You can include new mirrors in this file. Many people have mirrors
# file://path/to/some/directory/
man slackpkg.conf
Quote:
PRIORITY
This array selects the priority at which directories on the mirror
will have when slackpkg looks for packages. If a package is found
in more than one place, the package in first directory gets prior-
ity, then second, then third, then fourth and finally, the package
found in last listed directory. You can use %PKGMAIN to use the
contents of PKGMAIN variable.

Default values (in order): patches %PKGMAIN extra pasture testing
HTH

Last edited by EYo; 11-10-2014 at 05:08 AM. Reason: spelling correction
 
Old 11-10-2014, 05:13 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,494

Rep: Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822Reputation: 5822
Quote:
Originally Posted by qweasd View Post
I used Alien's gen_repos_files.sh to generate the lists, using my own signing key. I had to run it several times: once for the repo root and once for each subfolder (slackware64, patches, etc.)
Check out the script's "REPO_SUBDIRS" variable. You only have to run the script once if you define that variable properly.

Eric
 
Old 11-10-2014, 11:27 AM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,382

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I'm using the official repos as well as a series of third-party repos for my MLED project. Here's some basic documentation to get you started, even if you don't use it later on:

http://www.microlinux.fr/mled_installation.php
 
Old 11-12-2014, 04:21 PM   #6
qweasd
Member
 
Registered: May 2010
Posts: 613

Original Poster
Rep: Reputation: Disabled
Thanks everyone! I have another related question.

What is the deal with maketag, maketag.ez (why the same?) [Edit: hardlinked], and tagfile? The best I can tell they have something to do with setup. Am I right to assume that slackpkg ignores them completely?

Last edited by qweasd; 11-13-2014 at 03:36 PM.
 
Old 11-12-2014, 04:39 PM   #7
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,382

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Tagfiles are useful if (like me) you sometimes have to deal with something like dozens of identical installations. They're like a bone-headed version of Red Hat's kickstart files. If you have a precise idea of what you have to deploy, you can edit a set of tagfiles and then use them during the installation. Watch out for the "tagfiles" selection dialog next time you install Slackware.

Daniel de Kok explains tagfiles in detail in his Slack Basics book.

http://rlworkman.net/howtos/slackbasics.pdf
 
Old 11-12-2014, 04:44 PM   #8
qweasd
Member
 
Registered: May 2010
Posts: 613

Original Poster
Rep: Reputation: Disabled
Thanks kiki!
 
Old 11-12-2014, 07:10 PM   #9
qweasd
Member
 
Registered: May 2010
Posts: 613

Original Poster
Rep: Reputation: Disabled
Is there something like a scripty that generates maketag from tagfile? It actually looks like PV may be editing each maketag by hand...
 
Old 11-13-2014, 06:32 AM   #10
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,382

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by qweasd View Post
Is there something like a scripty that generates maketag from tagfile? It actually looks like PV may be editing each maketag by hand...
I only use this script to extract the tagfiles from a Slackware DVD:

http://www.microlinux.fr/slackware/t...py-tagfiles.sh

The rest is rather something in the line of :1,$s/REC/ADD/g in Vim.
 
1 members found this post helpful.
Old 11-13-2014, 02:28 PM   #11
qweasd
Member
 
Registered: May 2010
Posts: 613

Original Poster
Rep: Reputation: Disabled
Wow, this excursion really taught me quite a bit about Slackware. When I started, I couldn't hope that things will turn out so magically KISS, yet scalable and robust. The installer, for example, that gets so much flak in "reviews", is a perfect example of a robust tool handcrafted to perfection. I am very impressed.
 
  


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
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] What to do for pks not available in official repo? also how about mixing ofthird part rubankumars Slackware 3 02-25-2013 09:39 AM
Slackpkg howto add (not replace) a kernel? offplanet Slackware 6 08-21-2012 04:12 PM
does more software (official/repo) = instability Ubunoob001 Linux - Newbie 23 04-08-2012 06:13 AM
Does dropline replace the official GNOME packages? koyi Slackware 4 01-15-2005 08:41 PM

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

All times are GMT -5. The time now is 01:34 PM.

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