Author Topic: How to Set Up a Repository in Your Home Directory  (Read 10251 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
How to Set Up a Repository in Your Home Directory
« on: May 11, 2009, 07:08:05 PM »
Edit:
Rather than follow these instructions, open a terminal and enter mkrepo.

This is intended as a way for you to test the RPMs that you build. It is not a replacement for your regular repo.

Repository How To

Open a terminal and enter these commands. *Warning! Do this as user, not as root!

Code: [Select]
cd ~/src
Code: [Select]
mkdir -p apt/pclinuxos/2009/base
Code: [Select]
mkdir apt/pclinuxos/2009/RPMS.testing
Code: [Select]
cd apt/pclinuxos/2009/base
Keep the terminal open.

Open your file manager and navigate to your ~/src/rpm/RPMS/i586 folder. Right-click on your test rpm file and select Copy. Now go to the ~/src/apt/pclinuxos/2007/RPMS.testing folder, right-click and select Paste.

Go back to the terminal window and type the following:

Code: [Select]
gbd
This is from the pkgutils commands. The longer command is shown below -

Code: [Select]
genbasedir --flat --bz2only --progress /home/username/src/apt/pclinuxos/2009 testing
Next, open Synaptic and go to Settings > Repositories. Click on New. Enter this information:

Code: [Select]
URI:   /home/username/src/apt/
Distribution:  pclinuxos/2009
Sections:  testing

Be sure to replace username with your name.

Now click OK. Click Reload. Your repository will be loaded into Synaptic' list along with your regular repo.



« Last Edit: May 25, 2010, 03:58:53 AM by Neal »

mbmalone

  • Guest
Re: How to Set Up a Repository in Your Home Directory
« Reply #1 on: August 02, 2009, 07:55:45 AM »
This is really cool  :o

Now I just need to figure out how to load the testing RPM's from my Thumbdrive, when I want to try new ones that I have previously saved there.
« Last Edit: August 02, 2009, 07:59:34 AM by mbmalone »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #2 on: August 02, 2009, 08:12:11 AM »
Mount your thumb drive. Right-click on your test rpm file and select Copy. Now go to the ~/src/apt/pclinuxos/2007/RPMS.testing folder, right-click and select Paste.

Open a terminal and
Code: [Select]
gbd as in the instructions above. Follow the instructions from there.



mbmalone

  • Guest
Re: How to Set Up a Repository in Your Home Directory
« Reply #3 on: August 04, 2009, 05:01:58 PM »
Thanks Neal, easiest way I guess.

Mount your thumb drive. Right-click on your test rpm file and select Copy. Now go to the ~/src/apt/pclinuxos/2007/RPMS.testing folder, right-click and select Paste.

Open a terminal and
Code: [Select]
gbd as in the instructions above. Follow the instructions from there.



« Last Edit: August 04, 2009, 05:04:12 PM by mbmalone »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #4 on: August 04, 2009, 05:06:12 PM »
Yep! Easiest way. :D

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 475
Re: How to Set Up a Repository in Your Home Directory
« Reply #5 on: May 01, 2010, 01:46:18 PM »
Hello,
      Is the information for "Repository How To" still current.I want to have a go at packaging for PCLinuxOS 2010 KDE 4 so was wondering if I would be okay following the packager's guides.I encountered this at the first instance.
[trevor@localhost ~]$ cd ~/src
bash: cd: /home/trevor/src: No such file or directory

Also I am finding it confusing which packager howto is current.
Thanks.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: How to Set Up a Repository in Your Home Directory
« Reply #6 on: May 01, 2010, 01:51:15 PM »
http://www.montanalinux.org/files/RPM_Build_Manual_Rev2.pdf

I still use it.

Also read this:
http://www.pclinuxos.com/forum/index.php/topic,56817.0.html

Much easier to get setup that way than to do it manually.
« Last Edit: May 01, 2010, 01:57:38 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 475
Re: How to Set Up a Repository in Your Home Directory
« Reply #7 on: May 02, 2010, 03:16:05 AM »
Hello,
       Thanks for the response.I will get busy. ;D
trustytrev. :)
         
If there's a harder way to do something I'll probably find it.

Offline BubbaBlues

  • Hero Member
  • *****
  • Posts: 2071
  • I'm a blues hound.
Re: How to Set Up a Repository in Your Home Directory
« Reply #8 on: May 19, 2010, 02:07:12 PM »
These codes no longer work.
Whether you think you can, or think you can't, you're right.
~―Henry Ford―~

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #9 on: May 19, 2010, 02:40:25 PM »
These codes no longer work.


 ??? Do you mean the how-to?

http://www.pclinuxos.com/forum/index.php/topic,56817.0.html
pkgutils still works. Look for the KDE4 package or the thunar package.


Offline BubbaBlues

  • Hero Member
  • *****
  • Posts: 2071
  • I'm a blues hound.
Re: How to Set Up a Repository in Your Home Directory
« Reply #10 on: May 19, 2010, 03:34:08 PM »
Quote
Code:

cd ~/src

Code:

mkdir -p apt/pclinuxos/2009/base

Code:

mkdir apt/pclinuxos/2009/RPMS.testing

Code:

cd apt/pclinuxos/2009/base


Keep the terminal open.

Open your file manager and navigate to your ~/src/rpm/RPMS/i586 folder. Right-click on your test rpm file and select Copy. Now go to the ~/src/apt/pclinuxos/2007/RPMS.testing folder, right-click and select Paste.

This how to doesn't work for me, but I'm in uncharted waters here. Trying to expand my horizons.  8)
Whether you think you can, or think you can't, you're right.
~―Henry Ford―~

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #11 on: May 19, 2010, 03:39:56 PM »
Have you installed task-packaging-kde4? Or pkgutils-thunar? If so, follow the link in my previous post for some tips on using pkgutils.

Offline BubbaBlues

  • Hero Member
  • *****
  • Posts: 2071
  • I'm a blues hound.
Re: How to Set Up a Repository in Your Home Directory
« Reply #12 on: May 19, 2010, 05:10:57 PM »
Quote
Have you installed task-packaging-kde4?

Dad burnit I knew there was something...

THANK YOU Neal
Whether you think you can, or think you can't, you're right.
~―Henry Ford―~

Offline BubbaBlues

  • Hero Member
  • *****
  • Posts: 2071
  • I'm a blues hound.
Re: How to Set Up a Repository in Your Home Directory
« Reply #13 on: May 19, 2010, 07:45:17 PM »
The code does not work.  The repository does not add to synaptic.
Whether you think you can, or think you can't, you're right.
~―Henry Ford―~

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3883
Re: How to Set Up a Repository in Your Home Directory
« Reply #14 on: May 19, 2010, 08:40:10 PM »
Did you run ./genbasedir?

Galen