Update a pacman database on a machine with no internet.

ok, I'm not sure how many of you are going to find this useful, but here is what happened.  I have 2 Arch boxes running, my laptop and my desktop.  My laptop can get online, my desktop can't; due to I can't find a modem that will work with it.  so how am I supposed to keep the desktop as bleeding edge?  Easy, move the packages and pacman database to the desktop from the laptop.  Now, I don't do this everyday, maybe once a week (after a major version bump, or something).  I don't konw about you, but I would constantly be re-looking up all the switches I need to do this properly.  So I wrote a script; well two actually.  The first, is a simple bash one liner.  The other is a little more complicated.  You can find them here: http://mckean.upb.pitt.edu/~jhs/rph.tar.bz2.
I've been using them for about 3 weeks or so, and haven't broke anything.  But these are use at your own risk.  The import does  make a backup of your database, but the first few times I would suggest making one yourself, just to be on the safe side. 
Please leave feed back. 
(btw, rph = Remote Pacman-db Helpers)
/swogs

Another option: I use NFS to share my pacman cache from my main computer to my other computers, then mount on the other computers. The main advantage is that all the packages are only using up space on one computer.  It works really good.
In your case you would need to mount the pacman database also. "/var/lib/pacman/" I think?
Just thought I'd share what works good for me.
Here are my notes I took to remind me how to do it.
How To Setup NFS to share & mount pacman cache on other computer
======On main computer============
# pacman -S nft-utils
/etc/rc.conf
DAEMONS(… portmap nfslock nfsd …)
/etc/hosts.allow
#---For NFS Network File System, Linux shares----
portmap: 192.168.1.51
lockd: 192.168.1.51
rquotad: 192.168.1.51
mountd: 192.168.1.51
statd: 192.168.1.51
/etc/exports
#---share pacman cache -----
/var/cache/pacman/pkg 192.168.1.51(rw,no_root_squash,subtree_check)
======On Other Computer ==========
# pacman -S nft-utils
/etc/rc.conf
DAEMONS(… portmap nfslock nfsd …)
Note: only portmap is needed for mounting a share
Note: put portmap before network if automounting in fstab
delete cache "/var/cache/pacman/pkg"
mount cache
# mount192.168.1.50:/var/cache/pacman/pkg /var/cache/pacman/pkg/
check it
# ls /var/cache/pacman/pkg/
Automount in fstab
/etc/fstab
192.168.1.50:/var/cache/pacman/pkg /var/cache/pacman/pkg nfs rw,addr=172.25.1.150 0 0

Similar Messages

  • Creating physical standby database on same machine with dataguard

    hi every one
    i m new in oracle databases,
    i read documentation to create physical standby databases,
    now i install virtual machine (vmware) on my system,
    i install windows xp on this vm and oracle 9i
    now i want to create standby database on the same machine in some other drive configured with datagurd
    virtual machine
    OS windows xp
    database oracle 9i
    plz reply me how i do this
    explain clearly step by step.
    plz reply me in detail

    When you need to have the standby database on the same server as the master, use lock_name_space in the init.ora.
    This parameter permits this to occur without having to worry about changing the db_name.
    http://www.oug-ottawa.org/pls/htmldb/f?p=103:21:729607614317189728::::P21_TIP_NUM:821

  • How can I install a jre on client machines with no Internet Access

    Hi
    I have a lot of client machines located throughout the country which are connected to a central network (Oracle) application server. The client machines do not have internet access. The application now uses an applet which is accessible from the network. I would like to use the <jsp:plugin> tag to automatically download and install a jre on the client browsers that don't have a jre installed, when they access the jsp page. Unfortunately, even using iepluginurl="http://server-address/jinstall-1_4_2-windows-i586.cab, the client machines still need to access the internet to install the JRE as the cab file needs to access files at the Sun site.
    Is there any online jre installer, that can be used on a network where the client machines do not have internet access? Or do I need to install the JRE manually on each machine? The browsers are all Microsoft Internet Explorer.
    Thanks
    David

    Thanks for your reply ChuckBing.
    Unfortunately I had already copied the instructions I found in the Sun documentaion to the letter and it still needed access to the internet. In the end I solved the problem by pointing the iepluginurl to a non existent file and putting a URL, pointing to an offline JRE executable on the server, as the message that appears when the applet cannot be loaded. The clients then have the choice of downloading the JRE or installing it online by clicking on the URL.
    Thanks anyway.
    David

  • I need to install ITunes on an XP 32 machine with no internet, how do I download the 32 bit version on a 64 bit machine?

    See question above.

    Hello DavAM,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    Restart the Apple Mobile Device Service (AMDS)
    Set the Apple Mobile Device Service Startup type to Automatic
    Remove and reinstall iTunes and AMDS
    Best of luck,
    Mario

  • Restore Rman hotback in different machine with different Database name

    Hi All,
    I have oracle 11.2.0.3.0 in Windows 2003 R2 server 64 bit version,i have my production database "Proddb" in archivelog mode , I have taken RMAN hot backup at 9 AM and i want to restore this RMAN backup into new Machine with new Db Name "Testdb" at 1 PM ,in between 9 AM to 1 PM lots of transactions happened , lots of archivelogs got generated ..
    Can anyone tell me how to restore RMAN Backup in different machine with new Db name and also how to apply those archive logs which got generated between 9 AM to 1 PM.
    Thanks & Regards,
    Vikash Jain

    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814Yes you will have to apply all those archivelog after yours last backup 9:00 AM to 1:00 PM , someone give you good link to restore the RMAN backup from one machine ot another machine but it is missing one thing which you require is to restore database at new machine with new DB_NAME , for that you can do it in two ways after restoring and recovering the database.
    1)After restoring with original name "Proddb" do not recover database ,Create contorlfile in control.txt format using alter database backup controlfile to trace,Shutdown restored database ,delete/rename contorolfile ,recreate controlfile from control.txt which by setting its first line as
    Create controlfile set database "Testdb" resetlogs noarchivelogStartup mount with new created controlfile after defining new controlfile in pfile ,recover database at sql using backup controlfile "recover database using backup controlfile untill cancel" supply log till 1:00 PM ,Open database with resetlogs,run at comand prompt
    sqlplus "/ as sysdba" @aduplib.sql so2)Or better approach is http://docs.oracle.com/cd/B28359_01/server.111/b28319/dbnewid.htm.
    Khurram

  • I have purchased my software cs5 but need to install it on a new machine with a different OS, will it work, it's a 2013 system. I am currently on a 10.6.8 updating to 10.9.4

    Can someone answer this?
    I have purchased my software cs5 but need to install it on a new machine with a different OS, will it work, it's a 2013 system. I am currently on a 10.6.8 updating to 10.9.4

    you can check other users experience here, http://roaringapps.com/apps:table

  • TVSU fails to install updates on machine with 8.3 filenames disabled

    Hi all,
    I have experienced TSVU (4.0) failing to install updates on some machines (W7 ultimate 64 bits), but working fine on some other similar equipped machines.
    I have now investigated the issue, and browsing through logfiles on a working and non-working machine reveals that system update on one machine extracts the files using the command:
    os7005ww_64.exe /VERYSILENT /DIR=C:\PROGRA~2\Lenovo\SYSTEM~1\session\OS7005~2\ 
    Both the "program files (x86)" and "system update" directories has been changed to their proper 8.3 names.
    On the non working machine the call was:
    os7005ww_64.exe /VERYSILENT /DIR=C:\PROGRA~2\Lenovo\system update\session\OS7005~2\ 
    But this string seems to not be quoted properly when executed, so all the extracted files end up in a new catalog:
    C:\PROGRA~2\Lenovo\system
    From here all subsequent install calls then fails!
    The problematic machine had the NTFS 8.3 filename creation disabled, i think this might be the culprit! I have now changed this to the deafult value, uninstalled TVSU, and rebooted.
    But when i now try to install TVSU, it simply refuses It just pops up a windows installer window describing the command switches and exits.
    *sigh*
    I think the 8.3 filename problem could be the cause of other people experiencing TVSU installer problems, and this should propably be looked at by lenovo?
    The failure to install it anew, i haven't figured out yet - anyone???
    regards,
    Jesper

    Hi all
    You can verify the status of the short name of the  "system update" directory  (the primary problem) by doing the commands below. The problem i think, starts when short name generaten is turned off when _installing_ TVSU. then the SYSTEM~1 shortname will not be generated, and the program will revert to use long names, but quoting them wrong!
    try:
    cd c:\program files (x86)\lenovo
    dir /n /x
    IF TVSU is installed while short name generation is turned on (short name generated on install) you will get something like:
    20-01-2010  20:52    <DIR>                       .
    20-01-2010  20:52    <DIR>                       ..
    06-01-2011  10:30    <DIR>          ACCESS~1     Access Connections
    18-08-2009  14:11    <DIR>          ACTIVE~1     Active Update
    18-08-2009  14:19    <DIR>                       Dipmon
    18-08-2009  14:17    <DIR>                       FPIRPOn
    06-01-2011  10:25    <DIR>                       PkgMgr
    25-10-2009  19:14    <DIR>          SYSTEM~1     System Update
    15-10-2009  15:56            11.264              TVSU_TPC.DLL
    Notice the SYSTEM~1 shortname, if installed using no short names, that place will be blank.
    As an update i can tell i 'fixed' the machine having problems by enabling the short name generation and renaming, then copying the "system update" catalog, thus generating the short name for it - everything works again :-)
    PS: as a side notice on a machine with short names disabled and running as a user with a space in the user name TVSU will not even install, as it messes up with the space in the temp directoy (in the users home catalog)
    But somebody really should fix this, as it is very normal to read in tuning guides for SSD drives (Thinkpads with SSD anyone to disable this short name generation among other things...
    regards,
    Jesper

  • Installing OBISEONE on machine with already database installed

    Hi all,
    I need to install OBISEONE software on a machine where I've already got an oracle database (enterprise edition 10gr2) installed.
    I'm looking for a guide on how to install on a machine with an existing home! Anyone has any clues?
    Install in a completely different folder and home?
    Thanks in advance for any hints

    Two things -
    1)OBISE1 comes with oracle 10 R2
    2)OBISE1 does not work well on servers which already have an oracle home and take my word on it , it sounds pretty dumb but I tried this at a client and Oracle got back to me after three days suggesting I choose a virgin machine to install OBISE1 , try it but for me installation froze as it tried to create a listner for the bundled DB.Also if you want to access any help , its not metalink but you have to go through metalink3.
    Regards,
    Mohammad Farhan Alam

  • [Solved] missing pacman databases

    Somehow I am missing critical pacman databases from one of the two computers I have running Arch:
        /var/lib/pacman/core
        /var/lib/pacman/extra
        /var/lib/pacman/community
        /var/lib/pacman/core.db.tar.gz
        /var/lib/pacman/extra.db.tar.gz
        /var/lib/pacman/community.db.tar.gz
        /var/lib/pacman/local.db.tar.gz
    There are only two folders in /var/lib/pacman, namely:
        local
        sync
    ... both populated.
    When trying to update (pacman -Syu), or query (pacman -Ss) I get the same error message:
        error: GPGME error: No data
    I have looked this error message up in this forums but no problem quite like mine evident. Both machines are updated together, and the one is running just fine.
    Thanks
    Last edited by thea (2012-10-04 21:52:30)

    I had tried pacman -Syy earlier in my troubleshooting efforts, to no avail. Just tried it again, with mixed results. Here is my output:
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    :: Synchronizing package databases...
    After that everything appears to be functioning as it should. However the folders and files indicated in my first post are still missing.

  • Why does my bank website load in an old XP machine with 15.0.1 and will not load on win7 now, after I upgraded to 17.0.1

    I upgraded to 17.0.1 on a Win7 machine and now I can't access my bank website. I checked to see if the website was available on my old XP machine with 15.0.1 and I had no problem getting on my bank website. I tried again with my new machine, and I can't even get to the site, much less the sign in page.
    There are now a number of websites that I can no longer access, I get an "Unable to connect" page. I didn't have this problem BEFORE I upgraded to 17.0.1. And, something else is weird, when I do a google search, I usually can't click on the first link in the search results in 17.0.1, and sometimes other links.
    Linda

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Update Model from database does not update Nullable Property -- Possible bug?

    Hi,
    I don't know if this is the correct forum.
    When updating Model from database seems does not update the entity nullable property.
    and it will not update the Default Value from the Backend (MSSQL) also.
    I am using VS2008 SP1 3.5EF, XP64Bit Machine.
    Thanks
    vb.net GUI

    maybe related..
    today.. i changed the PK size.. from char(10) to char(36)
    got many problems.. easy to fix...
    but some query stop working:
    Table1Record.Table2Reference.Load(); //i'm trying to load table2 from table1..
    throw this error: A relationship multiplicity constraint violation occurred: An EntityReference expected at least one related object, but the query returned no related objects from the data store.
    i get this error only when PK is greater than char(10)...
    with SQL profiler.. i saw that PK was truncated to char(10) :
    exec sp_executesql N'SELECT [... some fields...]
    FROM  [dbo].[Table1] AS [Extent1]
    INNER JOIN [dbo].[Table2] AS [Extent2] ON [Extent1].[NoTable2] = [Extent2].[NoTable2]
    WHERE [Extent1].[NoTable1] = @EntityKeyValue1',N'@EntityKeyValue1 char(10)',@EntityKeyValue1='a2164b14-e'
    (NoTable1 is the PK changed from char(10) to char(36))
    i'm working with VS.NET 2008
    so, i looked at Model1.Edmx... in notepad
    CSDL was not changed when i did the "Update Model from Database" !!!
    here is SSDL part:
            <EntityType Name="Table1">
              <Key>
                <PropertyRef Name="NoTable1" />
              </Key>
              <Property Name="NoTable1" Type="char" Nullable="false" MaxLength="36" />
    here is CSDL part:
            <EntityType Name="Table1">
              <Key>
                <PropertyRef Name="NoTable1" />
              </Key>
              <Property Name="NoTable1" Type="String" Nullable="false" MaxLength="10" Unicode="false" FixedLength="true" />
    Cool.. i found the prob.... but why ? and how to correct this ? manually change Model1.Edmx in notepad ??
    why the maxlength property is readonly in Model Browser pane ??
    what about VS.NET 2010 ?! same prob ??
    is it a bug or by design ?
    I hope this can help someone.. I spent a few hours on this prob
    Patrick

  • Multiple entries under REQUIREDBY in the pacman database

    I've been playing around with some code to show how all the dependencies look on my computer and I've noticed that for some packages, in the pacman database, they have multiple entries under REQUIREDBY in the depends file. For example, my depends file for curl looks like this:
    %DEPENDS%
    zlib
    openssl
    bash
    %REQUIREDBY%
    vorbis-tools
    linkage-svn
    linkage-svn
    linkage-svn
    linkage-svn
    linkage-svn
    openoffice-base
    gnupg
    linkage-svn is listed 5 times, is something like this normal? If i delete four of the entries, will I ruin anything? I should mention that linkage-svn is a package from the aur that I update pretty frequently, so that could be the reason for it, but I've also noticed this for other non-aur packages. Audiofile had three entries for esd in it's depends file.
    Thanks!

    I don't use anything to automatically install packages from aur. I build them using makepkg (or in this case versionpkg) and install them using pacman -U.

  • Time Capsule and time machine with third party router

    Hi,
    This is the first time I use this site.
    I have over three years old Mackbook.
    APP has expired.
    Now I want to know how to set up time capsule in a new environment.
    I moved from Australian and Singapore.
    I was using Time Capsule and Airport Extreme in Australia.
    I have moved to Singapore.
    I am using router provided by Singtell(Singapore Telecommunication). I do not have an Airport Extreme anymore. My housemate and I are using wireless internet-sharing. Needless to say that internet provider is SingTell.
    Now I would like to know how to use time capsule and time machine with the network created with a router provided by SingTell.
    What I did so far is;
    Connected the time capsule to the power point.
    Orange lamp lit and flashed for a few second and stop. Orange lamp stayed on.
    Apple Utility does not recognise Time Capsule.
    I prefer to use it wirelessly.
    There are only two USB cable ports installed.
    One is used to synchronize iPhone.
    Other is used for a printer.
    but if it is not possible, wired would be OK.
    MacBook 13 inch 2.0 GH Late 2006
    I hope that someone able to give me an answer for this.
    Cheers,
    morepubholidays

    In this case the apple support people reveal a truly poor understanding.
    You must bridge something.. you either bridge the TC.. which 90% of people do.. or you bridge the dsl router.. which some people do manage to do.. You will have to look that up for your modem and check with verizon if they support pppoe authentication.
    IMHO just bridge the TC as you were told not to do.. as they are simply wrong about that.
    If you already tried this and it didn't work.. try again.. it is the correct approach.
    You have no choice. But this time let me suggest you do it using the 5.6 airport utility.. as the apple toyland v6 airport utility is likely half your trouble.
    So here is how to get the utility into your computer.
    How to load 5.6 into ML.
    1. Download 5.6 for Lion.
    http://support.apple.com/kb/DL1482
    Click to open the dmg but do not attempt to install the pkg.. it won't work anyway.
    2. Download and install unpkg.
    http://www.timdoug.com/unpkg/
    Run unpkg on the desktop.. it is very simple.. drag the AirPortUtility56.pkg file over to unpkg.. and it will create a new directory of the same name on the desktop.. drill down.. applications utilities .. there lo and behold is Airport utility 5.6 .. drag it to your main utilities directory or just run it from current location.
    You cannot uninstall 6.1 so don't try.. and you cannot or should not run them both at the same time.. so just ignore the toyland version.. the plastic hammer.. and start using 5.6.. a real tool.
    For screen shots see this post.
    https://discussions.apple.com/thread/4668746?tstart=0
    Then open the manual setup on the 5.6 utility.. go to internet tab. Connection sharing.. off bridged mode.
    Select this and update..
    Then all your IP addresses will be wrong.. I suspect this is where things are going wrong.. and messing you up.
    Once the TC is bridged.. turn off everything and restart.. in correct order.. modem.. TC.. client computers etc. 2min gap between each.

  • Data is not updated in the database

    hi.. to all..
    i'm using the following code ...... but the data is not updated in the database.. the output window get closed as soon as i clicked save button...
    i don't know wat's problem with the program...
    Plz help me.. to get resolve this problem..
    import java.applet.*;
    import java.awt.*;
    import java.sql.*;
    import java.awt.event.*;
    import sun.jdbc.odbc.*;
    public class Customerdetails extends Frame implements ActionListener
         TextField ccod,cname,add,phno,conp,email,fax;
         Label l1,l2,l3,l4,l5,l6,l7;
         Button save,exit;
         Connection con;
         ResultSet rs;
         Statement stmt;
         String s1,s2,s3,s4,s5,s6,s7;
    public Customerdetails()
        super("CustomerDetails");
        setSize(700,750);
        setLayout(null);
        setBackground(new java.awt.Color(245, 117, 105));
        l1=new Label("Customercode");
        l2=new Label("CompanyName");
        l3=new Label("Address");
        l4=new Label("PhoneNumber");
        l5=new Label("Contact person");
        l6=new Label("EmailAddress");
        l7=new Label("FaxNumber");
        l1.setBounds(20,100,100,70);
        l2.setBounds(20,180,100,70);
        l3.setBounds(20,270,100,70);
        l4.setBounds(20,340,100,70);
        l5.setBounds(20,420,100,70);
        l6.setBounds(20,500,100,70);
        l7.setBounds(20,580,100,70);
        ccod=new TextField();
        cname=new TextField();
        add=new TextField();
        phno=new TextField();
        conp=new TextField();
        email=new TextField();
        fax=new TextField();
        ccod.setBounds(200,120,150,50);
        cname.setBounds(200,200,150,50);
        add.setBounds(200,280,150,50);
        phno.setBounds(200,360,150,50);
        conp.setBounds(200,440,150,50);
        email.setBounds(200,520,150,50);
        fax.setBounds(200,600,150,50);
        Button save= new Button("Save");
        Button exit= new Button("Exit");
        save.setBounds(200,680,100,40);
        exit.setBounds(350,680,100,40);
        add(l1);
        add(ccod);
        add(l2);
        add(cname);
        add(l3);
        add(add);
       add(l4);
       add(phno);
       add(l5);
       add(conp);
       add(l6);
       add(email);
       add(l7);
       add(fax);
       add(save);
       add(exit);
      save.addActionListener(this);
      exit.addActionListener(this);
      setVisible(true);
    addWindowListener(new WindowAdapter(){
      public void WindowClosing(WindowEvent w) {System.exit(0);}});
    public void actionPerformed(ActionEvent ae)
    Customerdetails cud= new Customerdetails();
    if(ae.getSource()==save)
    s1=ccod.getText();
    s2=cname.getText();
    s3=add.getText();
    s4=phno.getText();
    s5=conp.getText();
    s6=email.getText();
    s7=fax.getText();
    try
          String query = "insert into Customerdetails (Customercode,CompanyName,Address,PhoneNumber,Contact person,EmailAddress,FaxNumber)"+ "values('"+s1+"','"+s2+"','"+s3+"','"+s4+"','"+s5+"','"+s6+"','"+s7+"')";
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          con=DriverManager.getConnection("jdbc:odbc:prism");
          stmt=con.createStatement();
          rs=stmt.executeQuery(query);
          stmt.close();
    catch(ClassNotFoundException e)
      System.out.println(e);
    catch(SQLException e)
      System.out.println(e);
    else if(ae.getSource()==exit)
    System.exit(0);
    else
    System.exit(0);
    public static void main(String args[])
       Customerdetails cud= new Customerdetails();
    }

    This doesn't look right:
    ,FaxNumber)"+ "values(because it's equal to ,FaxNumber)values(and your SQL server won't understand it, put a whitespace between.
    /M

  • TARGET database is not compatible with RMAN version

    Hi all,
    we have an issue related to RMAN version.
    A few weeks ago we update our 10.2.0.1 Oracle Database to 10.2.0.4 using 6810189 pacth set.
    Now when we try to execute RMAN this is the output:
    Recovery Manager : Release 11.1.0.6.0 - Production on Jue Nov 20 12:20:57 2008
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Recovery Manager incompatible with TARGET database: RMAN 8.0.4.0 to 10.2.0.4 needed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-06429: TARGET database is not compatible with this version of RMAN
    (I translate the spanish message, maybe the words is not exactly the same in the english version)
    As is shown in the output the RMAN version installed by the pacthset is higher than database version, is there a way to downgrade RMAN or to solve this issue?
    Thanks in advance,
    Alex

    I'm pretty sure patchset 6810189 does not install RMAN executable 11g. I did several patchings to 10.2.0.4 and that never happened. Patching may sometimes leave components at a lower level than the patchset,but never the opposite is true. That would be definitely a bug. So you (or someone else) installed 11g software.
    Werner

Maybe you are looking for