1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

พื้นที่ลงโฆษณา

Thin Client Server

พื้นที่ลงโฆษณา

Linux Authentication

พื้นที่ลงโฆษณา

Local YUM Repository

PDF Print E-mail

Written by Mr. Sontaya Photibut Saturday, 02 May 2009 14:33

Setting Local YUM Repo Server:

1. Install WebServer (apache2)
2. Install createrepo

Configure Apache:
$ vi /etc/apache2/conf.d/updates.conf

Alias /updates /backup/updates
<Directory /backup/updates>
     Options None
     AllowOverride None
     Order allow,deny
     Allow from all
</Directory>
<IfDefine SSL>
     SSLEngine off
</IfDefine>

Restart Apache:
$ rcapache2 restart

Install & Create Repo:
$ rpm -ivh createrepo-0.4.3-4.noarch.rpm
$ mkdir /backup/updates/sled10-sp2

Copy Source updated & Repo to new path:
$ cd /var/cache/zmd/web/files/nu.novell.com/repo/$RCE/SLED10-SP2-Updates/sled-10-i586
$ cp rpm -Rv /backup/updates/sled10-sp2/

Copy Source (sled10-sp2) from DVD:
$ cd /media/SLED10SP_001/suse/i586/
$ cp * -v /backup/updates/sled10-sp2/rpm/i586/

$ cd /backup/updates
$ chown wwwrun.www sled10-sp2 -R
$ chmod 775 /backup/updates/sled10-sp2/rpm/i586 -R

Create Repo:
$ createrepo /backup/updates/sled10-sp2
$ cd /backup/updates/sled10-sp2/repodata

Added is signing the "repomd.xml" file
$  gpg -a --detach-sign repomd.xml

Supply GPG key
$ gpg -a --export 06F46BD9 > repomd.xml.key

Set Up Clients Updates From The Local YUM Repo Server:

rug is the command line front end to access ZENworks Management Daemon (ZMD) You can list the sources of installation, and or delete.

ZENworks management daemon (ZMD) is a daemon written in C#

Yast package management  is package manager users libzypp but not ZMD.

Libzypp  is the new package/patch/pattern/product management library written in C++. Currently, it installs, upgrades and removes packages by running “rpm” on the command-line.

Zen Updater  zen-updater, zen-installer, and zen-remover is small applets written in Mono set of GUI frontends for zmd.
zypper is an easy to use command line package manager using the software package management library called libzypp.


Checking if zmd is running:
$ rug ping

ZMD 7.2.2, Copyright (C) 2007 Novell, Inc.
Started at 02/06/2009 18:00:41 (uptime: 0 days, 0 hours, 2 minutes)
RSS size: 26592
Network Connected: Yes
Running on Mono 1.2.2

OS Target: SUSE Linux Enterprise Desktop 10 (i586)

Module Name        | Description
-------------------+-------------------------------------------------
Inventory          | Software and Hardware inventory module for Linux
NetworkManager     | NetworkManager support
Package Management | Package Management module for Linux
ZENworks Server    | SOAP methods used by a ZENworks server
XML-RPC interface  | Export ZMD public interfaces over XML-RPC

If zmd isn't running.
$ rug ping
ERROR: ZMD does not appear to be running.


Adding a Service:
rug sa <repo_URL> <repo_description>

$ rug sa http://192.168.1.100/updates/sled10-sp2 -t yum updates-sled10-sp2

Check Service:
$ rug service-list
# | Status | Type | Name                                        | URI
--+--------+------+---------------------------------------------+---------------
1 | Active | ZYPP | SUSE Linux Enterprise Desktop 10 SP2 10.2-0 | cd:///?devi...
2 | Active | YUM  | updates-sled10-sp2                          | http://192....


Check Catalogs:
$ rug catalogs
Sub'd? | Name                                        | Service
-------+---------------------------------------------+--------------------------------------------
Yes    | SUSE Linux Enterprise Desktop 10 SP2 10.2-0 | SUSE Linux Enterprise Desktop 10 SP2 10.2-0
         | updates-sled10-sp2                          | updates-sled10-sp2


Verify Catalogs:
$ rug ca updates-sled10-sp2

Subscribe to catalogs:
$ rug subscribe updates-sled10-sp2
Subscribed to 'updates-sled10-sp2'


Check Package:
$ rug search firefox
S | Catalog                                     | Bundle | Name                        | Version      | Arch
--+---------------------------------------------+--------+-----------------------------+--------------+-----
v | SUSE Linux Enterprise Desktop 10 SP2 10.2-0 |        | beagle-firefox              | 0.2.18-78.9  | i586
  | SUSE Linux Enterprise Desktop 10 SP2 10.2-0 |        | mhtml-firefox               | 0.4-1.10     | i586
v | updates-sled10-sp2                          |        | MozillaFirefox              | 2.0.0.18-0.3 | i586
v | updates-sled10-sp2                          |        | MozillaFirefox              | 2.0.0.19-0.3 | i586
 2.0.0.18-0.5 | i586


Update the System:
$ rug up

Resolving Dependencies...

.
  openldap2-client 2.3.32-0.30 (http://192.168.1.100/updates/sled10-sp2)

  OpenOffice_org 3.0-0.4 (http://192.168.1.100/updates/sled10-sp2)

  OpenOffice_org-gnome 3.0-0.4 (http://192.168.1.100/updates/sled10-sp2)

  OpenOffice_org-nld 3.0-0.4 (http://192.168.1.100/updates/sled10-sp2)

  opensc 0.9.6-17.9 (http://192.168.1.100/updates/sled10-sp2)

  openssh 4.2p1-18.38.3 (http://192.168.1.100/updates/sled10-sp2)
.
.
Proceed with transaction? (y/N) y
End User License Agreement
ADOBE® SOFTWARE LICENSE AGREEMENT

NOTICE TO USER: PLEASE READ THIS CONTRACT CAREFULLY. BY USING, COPYING OR DISTRIBUTING ALL OR ANY PORTION OF THE ADOBE SOFTWARE ("SOFTWARE") YOU ACCEPT ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT, INCLUDING, IN PARTICULAR THE LIMITATIONS ON: USE CONTAINED IN SECTION 2; TRANSFERABILITY IN SECTION 4; WARRANTY IN SECTION
7; AND LIABILITY IN SECTION 8. YOU AGREE THAT THIS AGREEMENT IS ENFORCEABLE LIKE ANY WRITTEN NEGOTIATED AGREEMENT SIGNED BY YOU. THIS AGREEMENT IS ENFORCEABLE AGAINST YOU AND ANY LEGAL ENTITY THAT OBTAINED THE SOFTWARE AND ON WHOSE BEHALF IT IS USED. IF YOU DO NOT AGREE, DO NOT USE THIS SOFTWARE.


<Shift+q>
Do you accept the license? [y/N] y
Downloading Packages...

Testing Upgrade MozillaFirefox, OpenOffice-3.0
$  rug install MozillaFirefox
$  rug install OpenOffice_org-3.0-0.4.i586

Resolving Dependencies...

The following packages will be installed:
  OpenOffice_org 3.0-0.4 (http://192.168.1.100/updates/sled10-sp2)

  OpenOffice_org-gnome 3.0-0.4 (http://192.168.1.100/updates/sled10-sp2)
    OpenOffice_org-gnome-3.0-0.4.i586[updates-sled10-sp2] needed by OpenOffice_org-3.0-0.4.i586[updates-sled10-sp2]

  OpenOffice_org-nld 3.0-0.4 (http://192.168.1.100/updates/sled10-sp2)
    OpenOffice_org-nld-3.0-0.4.i586[updates-sled10-sp2] needed by OpenOffice_org-3.0-0.4.i586[updates-sled10-sp2]


Proceed with transaction? (y/N) y

Downloading Packages...
                                                                                       100%, 8.7 MB/s

Procedures with transaction Finished.


Troubleshooting zmd

rug can't add new unsigned repositories:
ERROR: Could not add 'http://192.168.1.100/updates/sled10-sp2': Failed to parse XML metadata: Untrusted key 'Sontaya Photibut (admin) <email@domain>' (75DA497B06F46BD9)

Solution: run command (root)
$ rug set security-level checksum


Remote repo channel:
#rug sd <channel_number> or name
$rug sd updates-sled10-sp2

Setting system-wide ZMD Preferences:
$ rug get

4 preferences one might want to change
max-cache-age    (default 30 day)
refresh-interval    (default 24 hours)
run-transaction-test (default False)
security-level  (default signature)

check for updates every 4 hours:

$ rug set refresh-interval 14400
$ rug set refresh-interval-software 14400
$ rug set refresh-interval-hardware 14400
$ rug set refresh-interval-system 14400
$ rug set run-transaction-test True


Ref: http://www.softpanorama.org/Commercial_linuxes/Suse/Patching/rug.shtml
       http://wiki.suselinuxsupport.de/wikka.php?wakka=HowToAddReposUsingRug
       http://en.opensuse.org/Secure_Installation_Sources#The_.22repomd.22_or_.22YUM.22_format
Note path files: /var/cache/zmd/web/files/

END.
       
Comments (0)Add Comment

Write comment

security code
Write the displayed characters


busy
 

SUSE Linux Enterprise Cool Solutions

  • Watch the future of Retail

    On YouTube I've published a three-part video of a presentation I did in early July 2010 to IBM retail partners. The sound volume is a bit low, and this was all recorded with a little flip mino camera, so please excuse the bad quality.

    The three video snippets are mainly intended for any of you who want to use Linux in retail as a solution provider and are wondering how solutions from Novell can help you be more successful.

    Nevertheless, especially the first part about how we see the future of the Point of Service might also be interesting to you if you are a decision maker in retail or just curious about how the future in retail IT may look like.

    The new features in SUSE Linux Enterprise Point of Service 11 Service Pack 1 are only mentioned briefly in this presentation. Watch out for more blog posts to come on Service Pack 1.

    This is Joachim Werner blogging live from the SUSE offices in Nuremberg, Germany.

    http://www.youtube.com/watch?v=WdYEeLIou7s
    http://www.youtube.com/watch?v=3Awr3tPpo2Y
    http://www.youtube.com/watch?v=pwwKpoEI9GI

  • Create an Appliance with SUSE Studio -- you could win $10,000

    They're looking for inventive minds to build the most innovative software appliances. Publish your unique appliance to the new SUSE® Gallery™ and enter into a contest to win $10,000!

    The contest runs from July 27 - September 30, 2010, so brush off your mad skills and pop on over here for all the details.

    It must not be too hard.... in the past year, more than 400,000 Linux appliances were built using SUSE Studio, with nearly 3 million downloads. SUSE Gallery is the place to strut your stuff and show off the appliances you have built with SUSE Studio. It also serves as a centralized online showcase where SUSE Studio users can browse and use both commercial and community-oriented appliances.

    Good luck! Make Cool Solutions proud.

  • See us at SHARE, Boston!

    The next SHARE event is approaching quickly - it takes place in Boston from August 1-5 at Hynes Convention Center: http://www.share.org/Events/UpcomingConference/tab...

    If you are attending, don´t miss the chance to meet our experts for System z, and visit us at Booth #319. To name just a few, watch out for Kim Lorusso (IBM Alliance Marketing Manager and Cool Blogger), Patrick Quairoli (Technical Alliance Manager), Marcus Kraft (Linux on mainframe "pioneer" and Product Manager for SUSE Linux Enterprise Server for System z), David Getzin (Partner Executive for IBM), John Jolly (Sys z Architect), and others. Chat with them about the SUSE Linux Enterprise Consolidation Suite tailored for IBM Solution Edition for Enterprise Linux. Don´t know what that is? Read more here: http://www.novell.com/products/systemz/els.html
    And get the latest about the new zEnterprise System - you bet that will be one of the "ruling" topics.

    Or listen to Mike Friesenegger, one of our most experienced Technical Specialists, when he talks about "ASP.NET on zLinux: A New Workload" (Tues Aug 3, 9:30-10:30AM, Room 305) and about how to " Implement the SUSE Linux Enterprise High Availability Extension on System z" (Tues Aug 3, 11AM-12PM, Room 208). And you´ll have the opportunity to hear from customers like Nationwide Insurance why and how they use SLES for System z.

    And as a side note - for those who have travel constraints and cannot attend personally, SHARE offers the option to participate online - just check out http://www.share.org/Events/UpcomingConference/SHA...

  • IBM zEnterprise System - Get the hard facts

    This week on Thursday IBM made a ground-breaking announcement about the revolutionary zEnterprise System - you might have read my article here on Cool Solutions:
    http://www.novell.com/communities/node/11670/ibm-f...

    Curious now about getting details and some hard facts? Just download the data sheet from IBM and see how it works. Want to discuss how this new system relates to SUSE Linux Enterprise ? Leave a comment or drop me an email at chabow@novell.com

    AttachmentSize
    11394070.pdf385.48 KB
  • What do you think about this country/language selector?

    The web team at Novell is tweaking the way people choose the language they want to read the website in. (Of course, this doesn't affect this communities section, which is only provided in English. But it does affect a lot of the marketing pages on novell.com. )

    We'd like your feedback, especially if you like to read the rest of Novell.com in a language other than English. Take a look at this design, and let us know what you think by posting comments.

    Thanks for your input!

    View design here.

Sponsors List