How to create a repository(not just custom) using your hard drive

I don't know if many people know about this, so I am giving this a shot. There are three major articles on wiki.archlinux.org: Custom local repository,
Using a CD-ROM as a repository, and Offline Installation of Packages. These are available online through the WIKIs at archlinux.org.
I was first confused because when I was reading "Offline installation of packages", I didn't know what these ".db.tar.gz" files where. I came mainly from a Debian / Ubuntu
background (I actually tried many distros before this), so getting used to the way the repository works and no graphical install manager for it. However, I enjoyed a challenge and
I found out that these are database packages that contain descriptions and locations on where these files are located. The ones on the ftp server are already compiled. I don't know if,
however they are compiled with the most recent versions.
   With all that said, I thought you had to have it all in one directory in order for this to work, but as it turns out, location is not really an issue. I decided to have a directory reside on the root.
I chose root because it's only for the install of my own packages. I could have done it as a seperate user account, such as "repos" in PCLinuxOS (another distro I tried). I didn't want to have a seperate account for this. Therefore, I created "/root/repository". Within this directory I created directories for all repository archives. I basically did a "cd /mnt/dvd" and migrated to the particular repository directories. I would copy all the "pkg.tar.gz" files into their respective directories with "cp * ~/repository/<name-of-dir>". For intance, I started with the "core" directory, because there was some things I didn't install in the core directory during installation and if the packages needed it, it was there. This follows for the rest of the directories, such as "community", "testing", and "unstable", etc.You can go to the ftp mirrors to find out what directories are available. The main point is that your files should be in the format ".pkg.tar.gz". These are package files that get converted into a sort of database format that as I mentioned, informs the system the description and where the files are located, and so on.
   The command to perform this, is "tar -xvf /root/repository/core/core.db.tar.gz *.pkg.tar.gz". You can replace core with whatever repository you are adding. So, for example, "extra.db.tar.gz" would be in the "extra" directory. This information is located in the "Offline installation of packages".  The command to create this database is called, "repo-add".
The format for this command is "repo-add /path/to/dir.db.tar.gz *.pkg.tar.gz". So, if it's the core packages you would "cd ~/repository/core" and "repo-add core.db.tar.gz *.pkg.tar.gz".
  Then, you need to edit the "/etc/pacman.conf" configuration file for pacman. I basically would comment all out except for the repositories I need. So, for example "[core]" and "/etc/pacman.d/core" would tell where normally the servers are located for these files. This information is located int the "Custom local repository" article.using the "repo-add" command.
   Furthermore, I edited each server file located in "/etc/pacman.d/<repository>" where repository is core, extra, etc. I would perform,  "nano /etc/pacman.d/core" for example and comment out all servers. I then add a "local repository" by typing in "file:///root/repository/core", saved it, and then did a "pacman -Sy" to update the repository database. Now, I can do "pacman -S <package-name>" where package-name is whatever I wanted to install. Voila! Please let me know of any suggestions, questions, insights, or comments. I hope I'm not missing anything in this article. I do remember using "rm -rf * in the "/var/lib/pacman/<repository>"directories and using "tar xvf <repository>.db.tar.gz". I don't if that something to do with it, though. Be careful with the "rm -rf *" command, because you can erase your hard drive if you are not careful, for those who aren't informed.
P.S. Please note all these are done with the root user.

pressh wrote:
gradgrind wrote:
smitty wrote:pressh, I understand and appreciate your point of view... well taken! Are you implying that I should have written in steps, such as 1, 2, and 3? Also, should I have got ridden of the redundant information if it is contained in the Wiki article and / or  taken out the commands on how to apply them and left only with the explanation? Is this what you imply? Sorry if I seem redundant with these questions, but I'm curious so I can improve for the future. I am new to this and open to any suggestion and comments.
Maybe you could either edit the existing wiki pages where they were not clear to you, or else add a new wiki page, or both. Certainly give the whole a clearer (visual) structure, and (if they don't already exist) add links between the connected wiki pages.
Yes that is partly what I mean. Further you could get rid of the information that is not really needed to follow the guide (for example what the command 'repo-add' does. People could if they are interested look it up in the script itself, or you could add it here and link to it).
And yes a bit of structure would be nice. You don't have to nessesarily call it 1,2,3, as long as it has some kind of structure in it (the visual point is very important here). You could take a look at existing wiki pages on the web and see how most of them (not all of them are good of course) are structured.
That's a good point, too. How do I found out what articles are more effective? I am doing research on this particular matter at the moment and came across articles that have tips on technical writing. Could this help in the long run? Or, is it better to get feedback from other users and improve that way? In other words, do first, and ask later, as one user point out?

Similar Messages

  • How to create mirror backup of my Time Machine external hard drive

    I am running Time Machine back ups for my MacPro with OS 10.8.5, purchased in 2008.  I am saving the Time Machine back ups to an OWC Mercury Elite-AL Pro 2TB external hard drive.  I have a second 2TB external hard drive and would like to mirror what's backing up to the first 2TB external hard drive.  I feel that it gives me better odds if I plug the hard drive in one day and it isn't recognized, or some calamity happens to my computer and everything goes downhill from there, which seems to be the rule rather than the exception.  Currently I store the external hard drives in a safe in my home between uses.  They don't spend 24/7 hooked to my computer.
    I would like to know that I always have two copies of the same Time Machine back up on hand.
    Thanks,

    Drives fail. Often in the first six months, and after that, they may last 5-6 years. Or not. A weak (not just bad) sector block is usually the best indication. Having spare drives on hand should be a must, and rotate primary drives to backup or archive every two years maybe after giving them a long erase - to ease your fears and hopefully find the worst possible error.
    RAID6 is useful for holding large video catalogues and projects - and then mirror your RAID6 to another RAID6.
    SoftRAID 5 http://www.softraid.com will scan drives in the background for weak blocks, monitor I/O better for read/write errors (without impacting performance is important) and can be well worth its $140 ish price (worth it in tech support alone, too if ever you need it)
    A couple programs will write the SMART status to the system log and show the numbers of used and remaining spare blocks. That is something a large study of disk storage revealed. And in today's world, storage needs and the need to "change the light blubs" on a basis before one fails is a must in massive data cloud and big data mining.
    Apple's Mac Pro and the RAID card is not "hot swap" capable, though the motherboard in the Classic Mac Pro actually could as designed by Intel. And hot swapping is a handy feature - create a 3 drive mirror array, pull one, you still have two and let SoftRAID do a better rebuild in the background adding a new 3rd mirror drive.
    Two drive mirrors are weak and not all that great, in my estimation.
    TimeMachine is there to get people to at least have a automatic ish do it and forget it, hopefully, versus none at all. A good beginning. It also turns 8 this September and has slowly, gradually, hopefully, matured. I might buy Disk Warrior 5 if only to check the backup catalogue for integrity though at $99 a waste for most and better spent on another backup drive or something. But you never want to be in need of Data Rescue 4, another $99 product.

  • How to create a JBOD without formatting one of the hard drives

    Hi,
    I'm using a QWC Mercury Elite Pro external hard drive with 2 500Gb hard disks as my video scratch disk. I have configured them as 2 separate disks and been using CCC to copy the 1st drives content to 2nd drive. Now, the 1st drive is almost full. I'm planning to JBOD these 2 drives into a single drive but I don't want to format the drive with 500GB of video in it. Is it possible to do that?
    Basically, I would like to add another 500GB hard disk to my current 500 Gb disk (which is full) and see them as a single drive without formatting the current drive.
    Thanks.
    Ucan

    to JBOD these 2 drives into a single drive
    You just said a nonsequitor.
    to JBOD two drives
    is to make them into two separate distinct drives with no RAID configuration applied to them.
    Do you want them to act as a single cohesive drive unit, or one where files get copied automatically between the two of them in some RAID configuration? I know JBOD configurations quite well, but RAID I'm not too familiar with.

  • How to convert avchd footage when it's on your hard drive in your computer?

    hey guys, I have a problem. I have a Sony Hdr-sr7 hard drive avchd camcorder and I can convert the footage to pro res just fine when i plug in my camera via usb. but when I download the avchd files (.mts .mt2s) to my mac hard drive I'm not able to convert then in the L&T window in FCP. Can you help me here? I have never been able to figure it out.
    Thanks.

    For L&T to recognise the AVCHD files, you need to preserve the full directory structure of the camera when you copy the footage to your Mac i.e. don't just copy across the folder which contains the AVCHD files.
    Assuming you have the full directory structure in place on your Mac, point L&T to the top level directory.
    There are also alternatives to L&T which don't require the full directory structure to be in place.
    Toast9/10
    Voltaic
    VideoPier
    Frank

  • Ethernet not connected when using external hard drive

    My brand new Mac Mini (mid 2010) works fine when I connected it out of the box to my router via Ethernet cable. But when I boot that new mini using an external hard drive (La Cie 500 GByte Firewire 800 connection), the Ethernet shows up as "Not connected". It advises that I should plug it in, or the other end may not be plugged in. But when I simply reboot again to the internal hard drive, without changing any connections, the internet connection works fine. When I boot a different and older Mac Mini (2.0 GHz Core Duo) off that same external hard drive (using Firewire 400 of course), the internet connection works fine. I'm stumped despite using Macs since 1986. I tried automatic mode, but I can't get far, because it thinks there is nothing plugged into the Ethernet port. But there is, and it even works when booting off the internal hard drive. Both the internal and external OS are at 10.6.4, latest. I also tried erasing the internal hard drive so it couldn't get confused, but that didn't help. What else to try?

    The ethernet service has nothing to do with the cable plugged or not, and the ethernet cable is working fine with the other system, so definitely the issue with your other OS. Forget about the working OS for now and boot into the OS that has the problem and select the ethernet service from the service list in System Preferences > Network then click on minus button then apply the changes then click the plus to add it again.
    If this didn't work, go to :
    /Library/Preferences/SystemConfiguration
    and trash the NetworkInterfaces.plist file then restart and see if it solves the issue.

  • ITunes not delete songs from your hard drive while they're playing?

    So, if I delete a song, it says "would you like to keep this file or delete it?" And I always want to delete it; I can't even imagine why I would want to keep files I'm deleting.
    However, if you are playing a song at the time, or if you're listening to a podcast and it has finished playing, if you try to delete them, it will not delete the file even if you tell it to.
    Is there a setting around this or is iTunes just as stupid as I think?
    i.e. Is the only solution after you finish listening to a podcast to play some other random file and then delete it?
    This became infinitely more annoying after iTunes decided that videos should automatically be played in the window instead of a new window, since now I have to make sure I'm picking another random file that ISN'T a video so I can actually see the original file and delete it.

    I often want to remove files from my iTunes library, but keep them on my harddrive. That's why iTunes asks you if you want to delete it. Holding control down when you hit delete will at least get rid of the first dialogue box.
    If you are trying to delete a song that is playing, it won't delete it because it is in use.
    I assume the same is happening on your machine with podcasts. Your system thinks the files is still in use, so can not delete it.

  • Not enough space on your hard drive

    I have an absurd message this morning on my iMac.
    "Mac OS X has not enough space for the memory allocated to applications"
    My HD has 1,36 Tb AVAILABLE.
    What's that ?

    I'll repeat your quote from above;
    Activy Monitor already checked :
    Available : 10, 46 Gb
    Active : 3, 38 Gb
    My RAM is 16 Gb
    What is that number then?

  • How do i not have my photoshop linked to my macintosh hard drive because it slows down the program by using my hard drive space

    how do i not have my photoshop linked to my macintosh hard drive because it slows down the program by using my hard drive space

    Which version of mac os x and photoshop are you using?
    How much free space is on your hard drive?
    How much ram do you have?
    Photoshop needs to use your hard drive for scratch space.
    If you have more than one hard drive (not partition), you can assign photoshop's scratch disk to another hard drive.
    Optimize performance | Photoshop CS4, CS5, CS6, CC

  • How do I permanently delete imported video to free up hard drive space?

    I have imported 2 years worth of video and I believe this may be the reason my iPhoto is so slooooowww. I thought I have deleted the footage, but I'm wondering if I have not done it correctly. Could someone let me know how I can delete any unwanted video completely from my computer? Thanks.

    As a footnote to Klaus 1's accurate comment, even deleting the iMovie project trash will not necessarily remove from your hard drive the clips that are in there. If any part of a clip is still being used in the project, the whole clip stays in, even if you have split off a part, placed it in the trash, and emptied the trash. It is part of iMovie's non-destructive editing feature. I have seen lots of posts on this forum where users empty the iMovie trash and notice that the project size hardly decreases.

  • Help! how to create a repository correctly of owb?

    I have installed oracle11 in the directory c:\app\***\product\11.1.0\db_1 and installed owb in the directory c:\app\***\product\11.1.0\owb11gr1. When i tried to Create a Repository Using the Repository Assistant, the system gives out an error message:OWBSYS is not granted access to owb home/owb/bin/admin/rtrepos.properties:Please run UnifiedRepos/reset_owbcc_home.sql specifiying the path of the Oracle Home from which the Control Center Service is being run.
    Then I run the script reset_owbcc_home.sql and put in "C:/app/***/product/11.1.0/owb11gr1" according to the prompt.
    But it still can not work, it gives out another error,"there is no table or views"
    Can anyone tell me how to create a repository correctly?
    Thanks!

    With your database 11g install OWB is already installed under the ORACLE_HOME's owb directory. You should/could have just used it.
    I'd suggest a cleanout and start again, here are the steps:
    1. Close any open OWB
    2. from db home,
    Stop runtime service - cd owb/rtp/sql sqlplus OWBSYS/OWBSYS @stop_service
    3. drop your target user, design user
    4. cleanout OWBSYS, recreate:
    cd owb/UnifiedRepos
    sqlplus using your sysdba
    @clean_owbsys
    @cat_owb <tablespace_of_your_choice)
    Now run reposinst.bat from your database Oracle home
    Cheers
    David

  • I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    In Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
    Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
    Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
    If it does contain data...
    http://support.apple.com/kb/TS2474

  • How to create a repository for data archiving?

    We have a content server installed 2 months ago.
    We want to store the archived data either into the content server DB (even we know it's NOT
    recommended) or better into the file system on the content server.
    Could you help tell how to create the repository to hold the archived data in above 2 scenarios?
    Thanks a lot!

    content server DB (even we know it's NOT recommended)
    I have use Content Server with MaxDB in more than 1 ocation without any issues.
    You need to set up the repositories in OAC0.
    Read,
    http://help.sap.com/saphelp_nw04s/helpdata/en/ed/cefa3882cd8229e10000000a11402f/frameset.htm
    Regards
    Juan

  • How to create a navigation bar with custom made buttons?

    I'm used to work with a similar program as Muse. In there we can create a single button and link them together into a navigation bar. I have tried all sorts of tutorials but none of them is discussing this possibility.
    To summorize. The idea is to create a button in photoshop and to use this as a theme to build a navigation bar. Possible or not and how? Thanks for assistance. Rgds Rufin

    Hi Brad,
    Thanks for your reply.
    No, not really. I used to work with XARA up till now. And being an Adobe Cloud user I think it a bit silly using two different systems. In XARA I can create a custom button and turn them into a navbar. For your information I include a few links to sites I created with Xara and I would like to know if I can create the same type of navbars with Abobe Muse. I already found out that all the other functions are available and some work a lot better in Muse, but I’m stuck on the navbar issue. I know I can create a button in Adobe PS and use it in Muse. But I didn’t manage to figure out how to create a navbar in Muse on basis of a button created in PS.
    www.restaurant-cedric.be or www.discoamigo.com or www.radioparadijs.be
    Grtz,
    Rufin
    LOGO-RUFIN'S-REISBUREAU-outlook
    Koningslaan 36 – b31
    8300 Knokke – Heist
    Tel: 050621052
    Fax: 050621072
    e-mail:  <mailto:[email protected]> [email protected]
    <http://www.rufins.be/> http://www.rufins.be
    <http://www.travelcoop.be/> travelcoop_logo_2013[1]  <http://ferventreisagent.be/rufins-reisbureau> klein logo
    Van: Brad Lawryk
    Verzonden: zondag 12 oktober 2014 19:40
    Aan: RUFIN DUWEL
    Onderwerp:  How to create a navigation bar with custom made buttons?
    How to create a navigation bar with custom made buttons?
    created by Brad Lawryk <https://forums.adobe.com/people/Brad+Lawryk>  in Help with using Adobe Muse CC - View the full discussion <https://forums.adobe.com/message/6817739#6817739>

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • How to Create a repository in KM?

    Hi All,
    My Queries:
    1)How to create a repository in KM(for storing images)?
    2)How to Create a task in a UWL when an image is copied in the KM repository?
    This is needed in my I2P(Invoice to Pay) process scenario.
    Please help!
    Reply soon!
    Sumit

    Sumit,
    Are you referring to the subscription feature for KM.
    You should have a mail transport created for this purpose.
    Also have mailing, notification active and channel originators set up.
    Pls try this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3b/10083f56e4d861e10000000a114084/content.htm
    Regards
    Vineeth

Maybe you are looking for

  • Need help in developing a query

    Hi All, i have two requirement. 1. in the selection screen, user enters a key date. the user would enter a from date and a to date. if the to date is left blank it should pick the system date when the report is run as to date. 2. in my cube i have da

  • Booting into linux-3.11-1 causes network to break [solved]

    I cherry picked linux-3.11-1 and linux-firmware-20130903 out of [i686 testing] on a 10-year-old machine (nforce2-based motherboard, model Asus A7N8X-E Deluxe).  Upon rebooting, into the new kernel, I am left with a partially functional network.  Down

  • Stop waiting for erase

    Hi, I lost my macbook air with sensitive information on it. I logged in into icloud and requested a deletion of the data, when the computer is online the next time. Now i got my macbook back () and it has not been online since. I have a backup of my

  • Making additional edits to completed project

    Hi, I am currently working on a documentary for school. I finished the documentary and then made a new project and copied and pasted about one minute of the documentary into that new project (I had to have a sample of my project as part of a class pr

  • It will not let me download new update, or unistall itunes

    When i try to update my itunes it will not let me and pops up with an error message i tried to delete itunes and it pops up with the same message. How do i delete it so i can install the new one or how can i update it?