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

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: How to Set Up a Repository in Your Home Directory
« Reply #15 on: May 19, 2010, 08:59:53 PM »
The error in your screen shot suggests that there is a problem in your /etc/apt/sources.list file;  post the contents of it here and we can help you fix it.


Also, note that you can create a local repo in your home directory using the mkrepo script (part of the pkgutils package)...  it will create the directories and then add the repo to your sources.list file auto-magically (with less chance for errors)  ...more info here:

http://www.pclinuxos.com/forum/index.php/topic,56817.msg518324.html#msg518324
 ;D
« Last Edit: May 19, 2010, 09:33:44 PM by travisn000 »

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: How to Set Up a Repository in Your Home Directory
« Reply #16 on: May 19, 2010, 09:14:09 PM »
Hmm, I don't want to sound snooty here, but this is the "Dev" area of the forum.  If you don't understand what's going on here then it may be best to back away slowly and wish you had never seen it.  What has been seen cannot be unseen.

This is where we actually "TRY"  yes "On Purpose" to break our install by using an outside package.   :o  And then try to fix it to work on PCLOS.   ;)

So, if you are not willing to break your install then don't do this stuff.  If you do break your install, you can certainly ask for help, but don't come crying to us about it.  I have broken my install many times and on one occasion actually wiped my entire drive.

You have been warned.

If you dare to proceed further, then ask away.  You gotta start somewhere, just like we did.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline BubbaBlues

  • Hero Member
  • *****
  • Posts: 2075
  • I'm a blues hound.
Re: How to Set Up a Repository in Your Home Directory
« Reply #17 on: May 20, 2010, 01:00:02 AM »
I thought that's what I was doing! And don't worry about my install, as I am using a designated computer with a fresh install of mini-me. You know, I'm trying to learn. Maybe I came to the wrong place. I suppose there are other places.
Whether you think you can, or think you can't, you're right.
~―Henry Ford―~

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #18 on: May 20, 2010, 04:09:31 AM »
I thought that's what I was doing! And don't worry about my install, as I am using a designated computer with a fresh install of mini-me. You know, I'm trying to learn. Maybe I came to the wrong place. I suppose there are other places.

Bubba,
If you want to learn packaging, you're in the right place. But you have to be hard-headed-stubborn and determined to forge ahead whatever happens.

Don't misunderstand Joble; he's simply making sure you understand. Actually he's being a friend. In theory, packaging should be easy. In practice, it can be a lot of work that can end in a borked install and a need to start over. You got to be so hard-headed that you keep going till you find the right configuration or patch; i.e. whatever is needed. Joble is making sure you understand these things before you go on with this.


Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: How to Set Up a Repository in Your Home Directory
« Reply #19 on: May 20, 2010, 08:11:41 AM »
Quote
then ask away.  You gotta start somewhere, just like we did.

 ;D ;D

Welcome to Packagers BubbaBlues!  ;)
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #20 on: May 20, 2010, 11:03:10 AM »
Yep. Welcome, Bubba. :)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: How to Set Up a Repository in Your Home Directory
« Reply #21 on: May 20, 2010, 02:55:54 PM »
Yep. Welcome, Bubba. :)
+1
sometimes a hard job  ;D

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: How to Set Up a Repository in Your Home Directory
« Reply #22 on: May 25, 2010, 12:03:09 AM »
Hello,
        I have been trying to set up a repository in my home directory.Unfortunately I seem to be getting myself in a bit of a tangle.Having followed the howto I just seem to be at a standstill.I am hitting the problem below and I seem to be loosing my way

[trevor@synergy RPMS.testing]$ [trevor@synergy RPMS.testing]$ gbd
bash: [trevor@synergy: command not found
[trevor@synergy RPMS.testing]$ Can't find folder /home/trevor/src/apt/pclinuxos/2010/pclinuxos/2010/RPMS.testing for Section testing in "/etc/apt/sources.list"
> Check path "/home/trevor/src/apt/pclinuxos/2010/pclinuxos/2010" for folders (or links) like "RPMS.section"
> [trevor@synergy
 

I also have the output below when I reload in synaptic
Any suggestions would be most welcome as I am missing something obvious.
Thanks.
trustytrev. :)
« Last Edit: May 25, 2010, 12:24:36 AM by trustytrev »
If there's a harder way to do something I'll probably find it.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #23 on: May 25, 2010, 04:06:13 AM »
trustytrev,
When setting up your build environment with pkgutils, the command mkrepo should set up your home repo. Check in /etc/apt/ for your sources.list file and check to see if your home repo is listed. Look for your sources.list.old file, add your home repo and restore it.

I think I may remove this topic. A year ago, it was pretty good. Now it seems to be a bit out-dated.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: How to Set Up a Repository in Your Home Directory
« Reply #24 on: May 25, 2010, 06:43:13 AM »
It sounds like you have an old version of the mkrepo script...  others are having issues with it as well; try the following one (attached) AFTER running the repo-speed-test to repair your current sources.list file (write changes when prompted).

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: How to Set Up a Repository in Your Home Directory
« Reply #25 on: May 25, 2010, 11:13:34 AM »
Hello,
      That seems to do the trick.
Quote
Posted by: travisn000
Insert Quote
It sounds like you have an old version of the mkrepo script...  others are having issues with it as well; try the following one (attached) AFTER running the repo-speed-test to repair your current sources.list file (write changes when prompted).
Neal I followed the advice from travis and it all worked out fine.
There seems to be quite a number of contradictions and confusion created with the information for people new to packaging like myself.I think it would be beneficial for newbies if consistency and clarity could be improved.
I have my package installed,I just need to figure out how to get it working. ;D
Thanks to you both.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Linuxera

  • Guest
Re: How to Set Up a Repository in Your Home Directory
« Reply #26 on: May 26, 2010, 09:05:15 PM »
I thought that's what I was doing! And don't worry about my install, as I am using a designated computer with a fresh install of mini-me. You know, I'm trying to learn. Maybe I came to the wrong place. I suppose there are other places.

BubbaBlues, don't you go nowhere!!!   I learned to package just to understand the process so I could have an appreciation for what goes into keeping this distro up to speed.  I even learned how to upgrade the tool chain, not that that went very far either, bUT!!!  I'll bet two bucks to a hole in a donut you can do this.  Don't listen to what Joble says, cause he's just blowing hot air all over as usual.   Let the guys with the positive attitudes give ya a push, or a hand, but hang in there and you will learn it. 

And if I hear one more discouraging word from any of you guys, I'll come over there and knock the peewaddin's outta ya!!!

 :P :D ;D

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Set Up a Repository in Your Home Directory
« Reply #27 on: May 27, 2010, 12:53:25 AM »
Quote from: Linuxera
And if I hear one more discouraging word from any of you guys, I'll come over there and knock the peewaddin's outta ya!!!

 ??? Now wait one minute there. :P I am not discouraging Bubba! As it happens, I think he'd do very well at packaging, but I am not going to tell him it's a breeze. It does take some stubborn determination.

Bubba,
Grab your guitar and come on over for a visit. I got a good connection and will share. :D I'll help you learn the little bit I know about packaging, and that should get you up and going enough to do some packaging. As for learning more, experience is the best teacher. You can do it, you know.

Offline DutchWolfie

  • Full Member
  • ***
  • Posts: 92
Re: How to Set Up a Repository in Your Home Directory
« Reply #28 on: May 27, 2010, 02:16:03 AM »
I just jump in here because this packaging stuff has got me hooked. Before i start my journey if have one question. Do you really need to setup the repo in your home or can you setup the directory on a extended usb hd?
"All we have to decide is what to do with the time that is given to us",

Gandalf.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: How to Set Up a Repository in Your Home Directory
« Reply #29 on: May 27, 2010, 06:43:46 AM »
..I would set it up using mkrepo from here (link), move the directories to where ever you like, then use symlinks to link the old location to the new.  That way you can use the mkrepo script and save yourself a lot of time (this is how I use it).
« Last Edit: May 27, 2010, 08:13:41 AM by travisn000 »