Repolist.sh

i made this script to help me post the contents of my repo on the forum - it's pretty simple but it preformats with phpbb code so that you just paste the text into a post, complete with links to pkg homepages and your online PKGBUILDS - you can see what it churns out here
i figured anyone could easily adapt it to do the same for them
I should also note that this was all inspired/copied from the way Encelo presents his repo on the boards
#!/bin/sh
repo=$1
pkgdir=$2
#change me to your online PKGBUILD dir
pkgbuild_repo_url=http://dtw.jiwe.org/share/pkgs/dibble/PKGBUILDS/
format_bbcode() {
#change path to your local repos
source /home/pkgs/$repo/PKGBUILDS/$pkgdir/PKGBUILD
cat << EOF >>${output}
[list][*][b]$pkgname - $pkgver[/b]
[url=$url]Homepage[/url]
[url=$pkgbuild_repo_url$pkgdir/PKGBUILD]PKGBUILD[/url]
$pkgdesc[/list]
EOF
if [ -z $1 ] ; then
echo "No repo given dummy!"
exit
fi
if [ -z $pkgdir] ; then
output=$HOME/repolist.txt
echo "[u][b]$repo repo pkg listing[/b][/u]" >${output}
echo >>${output}
#change path to your local repos
cd /var/abs/$repo
find * -maxdepth 0 -type d | while read pkgdir ; do
format_bbcode
done
else
output=$HOME/${pkgname}_entry.txt
echo "${pkgname} pkg listing" >${output}
format_bbcode
fi

Nice script! I should adopt it soon or later...
Thank you for giving credits.

Similar Messages

  • ASM installation on RHEL 6.4 in Amazon EC2

    I thought I'd perform an installation of 12cR1 to do a little testing. So I launched a new instance in Amazon EC2 and picked an AMI for 64-bit RHEL 6.4.
    All started smoothly, but I've got stuck preparing a disk for ASM.
    My first plan was to install ASMLIB. I see from the documentation that I need kmod-oracleasm (kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm), and that this is in the RHEL supplementary channel.
    $ yum repolist all
    Loaded plugins: amazon-id, refresh-packagekit, rhui-lb, security
    repo id                                            repo name                                                          status
    rhel-source                                        Red Hat Enterprise Linux 6Server - x86_64 - Source                 disabled
    rhel-source-beta                                   Red Hat Enterprise Linux 6Server Beta - x86_64 - Source            disabled
    rhui-REGION-client-config-server-6                 Red Hat Update Infrastructure 2.0 Client Configuration Server 6    enabled:      3
    rhui-REGION-rhel-server-releases                   Red Hat Enterprise Linux Server 6 (RPMs)                           enabled: 10,994
    rhui-REGION-rhel-server-releases-optional          Red Hat Enterprise Linux Server 6 Optional (RPMs)                  enabled:  6,250
    rhui-REGION-rhel-server-releases-optional-source   Red Hat Enterprise Linux Server 6 Optional (SRPMs)                 disabled
    rhui-REGION-rhel-server-releases-source            Red Hat Enterprise Linux Server 6 (SRPMs)                          disabled
    repolist: 17,247
    $ rhn-channel --add --channel=rhel-x86_64-server-supplementary-6
    Username:
    ^C
    Does Amazon EC2 provide the RHEL supplementary channel, and if so what credentials do I need to provide? Otherwise I guess I would need my own RHN subscription, which seems expensive for a self-learning instance.
    So my second plan was to avoid ASMLIB and implement udev rules.
    I created a 64GiB volume and attached it to the instance as /dev/sdh. On the instance it appears as /dev/xvdl:
    $ fdisk -l /dev/xvdl
    Disk /dev/xvdl: 68.7 GB, 68719476736 bytes
    255 heads, 63 sectors/track, 8354 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xf4c9fedb
        Device Boot      Start         End      Blocks   Id  System
    /dev/xvdl1               1        8354    67103473+  83  Linux
    $ sudo scsi_id -g -u -d /dev/xvdl
    $
    So scsi_id doesn't return a value to use in the udev rule. I've found references to this which suggest setting disk.EnableUUID. Is this option available in Amazon EC2 at all? Or is there an alternative way of getting a UUID for the disk?
    Any help with these questions, or suggestions for alternative solutions, would be much appreciated.
    Thanks
    Mike

    Did you try this command ?
    ~]# blkid
    /dev/vda1: UUID="7fa9c421-0054-4555-b0ca-b470a97a3d84" TYPE="ext4"
    /dev/vda2: UUID="7IvYzk-TnnK-oPjf-ipdD-cofz-DXaJ-gPdgBW" TYPE="LVM2_member"
    /dev/mapper/vg_kvm-lv_root: UUID="a07b967c-71a0-4925-ab02-aebcad2ae824" TYPE="ext4"
    /dev/mapper/vg_kvm-lv_swap: UUID="d7ef54ca-9c41-4de4-ac1b-4193b0c1ddb6" TYPE="swap"
    https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-sysinfo-filesyste…

  • Oracle-Linux-Doubts

    I have installed Oracle linux 6.2. I need GUI mode. What should i do to get that?
    Also i dont have internet connnection on my server for accessing yum repo(online). So where can i download the repository image(offline) for oracle linux 6.2
    Please clarify my questions. Its very urgent...
    Thanks,
    Veijar

    In addition to the previous reply, the following will configure YUM to use your local installation DVD:
    Login as root and paste the following to the system command prompt:
    <pre>
    cat > /etc/yum.repos.d/dvd.repo <<EOF
    [Install_DVD_base]
    name=Install DVD
    baseurl=file:///mnt/Server
    gpgcheck=0
    enabled=1
    skip_if_unavailable=True
    EOF
    </pre>
    To use the yum software repository of the OS installation DVD, it will be necessary to mount it:
    <pre>
    cd /
    umount /dev/cdrom
    mount -o loop -t iso9660 /dev/cdrom /mnt
    yum clean all
    yum repolist
    </pre>
    Note: The oracle-rdbms-server-11gR2-preinstall package is not on the installation DVD, unless you use Oracle Linux 6.3.

  • Should i update required packages  separately using  yum ??

    Hello Experts and Everyone !
    Good NOON !
    @ FYI
    Sorry for posting almost related my previous questions.  This is similar to my previous question but
    NOT a duplicate question. so please don't lock this question. This thread having different doubts.
    I think , this time i did successfully installing packages using yum.
    I have to install 10g r2( 10.2.0.1) on OEL 5.5.
    Before installing oracle , i need some confirmation from experts because i am preparing doc for practice.
    DID I FINISH SUCCESSFULLY ??
    # cd  /etc/yum.repos.d
    #  vi  cd.repo
    [cd]
    name=CD
    baseurl=file:///mnt/Server
    enabled=1
    gpgcheck=0
    [root@oracle yum.repos.d]# yum repolist
    Loaded plugins: security
    repo id                            repo name                     status
    cd                                 CD                            enabled: 2,334
    repolist: 2,334
    [root@oracle yum.repos.d]# yum install kernel-headers
    Loaded plugins: security
    Setting up Install Process
    Package kernel-headers-2.6.18-194.el5.i386 already installed and latest version  Nothing to do
    [root@oracle yum.repos.d] # yum install  oracle-validated
    Loaded plugins: security
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package oracle-validated.i386 0:1.0.0-22.el5 set to be updated
    --> Processing Dependency: libXp for package: oracle-validated
    --> Processing Dependency: libaio-devel for package: oracle-validated
    --> Processing Dependency: unixODBC for package: oracle-validated
    --> Processing Dependency: unixODBC-devel for package: oracle-validated
    --> Processing Dependency: compat-db for package: oracle-validated
    --> Running transaction check
    ---> Package compat-db.i386 0:4.2.52-5.1 set to be updated
    ---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
    ---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
    ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
    ---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
    --> Finished Dependency Resolution
    Dependencies Resolved
    ===============================================================================
    Package                  Arch         Version                Repository  Size
    ===============================================================================
    Installing:
    oracle-validated         i386         1.0.0-22.el5           cd          15 k
    Installing for dependencies:
    compat-db                i386         4.2.52-5.1             cd         1.7 M
    libXp                    i386         1.0.0-8.1.el5          cd          22 k
    libaio-devel             i386         0.3.106-5              cd          12 k
    unixODBC                 i386         2.2.11-7.1             cd         830 k
    unixODBC-devel           i386         2.2.11-7.1             cd         743 k
    Transaction Summary
    ===============================================================================
    Install       6 Package(s)
    Upgrade       0 Package(s)
    Total download size: 3.3 M
    Is this ok [y/N]:   y
    Downloading Packages:
    Total                                          165 MB/s | 3.3 MB     00:00    
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : unixODBC                                                1/6
      Installing     : unixODBC-devel                                          2/6
      Installing     : libaio-devel                                            3/6
      Installing     : libXp                                                   4/6
      Installing     : compat-db                                               5/6
      Installing     : oracle-validated                                        6/6
    Installed:
      oracle-validated.i386 0:1.0.0-22.el5                                        
    Dependency Installed:
      compat-db.i386 0:4.2.52-5.1               libXp.i386 0:1.0.0-8.1.el5        
      libaio-devel.i386 0:0.3.106-5             unixODBC.i386 0:2.2.11-7.1        
      unixODBC-devel.i386 0:2.2.11-7.1        
    Complete!
    [root@oracle yum.repos.d]#
    Questions:
    Before  going to install  oracle 10g on OEL 5.5 ,
    Should i update following packages separately using  yum  or leave it ?? 
    Oracle 10.2 for OEL 5 32bits
    binutils-2.17.50.0.6-2.el5
    compat-libstdc++-33-3.2.3-61
    elfutils-libelf-0.125-3.el5
    elfutils-libelf-devel-0.125
    gcc-4.1.1-52
    gcc-c++-4.1.1-52
    glibc-2.5-12
    glibc-common-2.5-12
    glibc-devel-2.5-12
    glibc-headers-2.5-12
    libaio-0.3.106
    libaio-devel-0.3.106
    libgcc-4.1.1-52
    libstdc++-4.1.1
    libstdc++-devel-4.1.1-52.e15
    make-3.81-1.1
    sysstat-7.0.0
    unixODBC-2.2.11
    unixODBC-devel-2.2.11
    >>  I tried to update above packages   , but getting error >>
    [root@oracle yum.repos.d]# yum update binutils-2.17.50.0.6-2.el5
    Loaded plugins: security
    Skipping security plugin, no data
    Setting up Update Process
    No Match for argument: binutils-2.17.50.0.6-2.el5
    No package binutils-2.17.50.0.6-2.el5 available.
    No Packages marked for Update
    Thanks in advance ..

    @  Pradeepcmst
    First my sorry for late  reply. Still we did NOT start 10g r2 installation on OEL 5.5.
    Please have a look ,if we missed anything , kindly forward it.
    I have received some warning messages (when executing oracle-validated command ) and separately we did NOT use update command using yum.
    Ex
    # yum <package_name> 
    -  Is this necessary before issue  following  command  => # yum install  oracle-validated.
    >> What we did  - I am pasting here >>
    # cd  /etc/yum.repos.d
    #  vi  cd.repo 
    [cd]
    name=CD
    baseurl=file:///mnt/Server
    enabled=1
    gpgcheck=0                                    
    skip_if_unavailable=True
    # wget http://public-yum.oracle.com/public-yum-el5.repo
    --2013-10-15 13:04:22--  http://public-yum.oracle.com/public-yum-el5.repo
    Resolving public-yum.oracle.com... 124.124.252.19, 124.124.252.16
    Connecting to public-yum.oracle.com|124.124.252.19|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 4307 (4.2K) [text/plain]
    Saving to: `public-yum-el5.repo'
    100%[==================================================>] 4,307       --.-K/s   in 0s     
    2013-10-15 13:04:29 (134 MB/s) - `public-yum-el5.repo' saved [4307/4307]
    [root@oel5 yum.repos.d]# yum install  oracle-validated
    Loaded plugins: security
    el5_latest                                                           | 1.4 kB     00:00    
    el5_latest/primary                                                                     |  14 MB     08:27    
    el5_latest                                                                                            10433/10433
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package oracle-validated.i386 0:1.1.0-18.el5 set to be updated
    --> Processing Dependency: util-linux >= 2.13-0.52.0.1.el5_4.1 for package: oracle-validated
    --> Processing Dependency: irqbalance >= 2:0.55-16 for package: oracle-validated
    --> Processing Dependency: kernel-uek >= 2.6.32 for package: oracle-validated
    --> Processing Dependency: oraclelinux-release for package: oracle-validated
    --> Processing Dependency: libaio-devel for package: oracle-validated
    --> Processing Dependency: libXp for package: oracle-validated
    --> Running transaction check
    ---> Package irqbalance.i386 2:0.55-17.el5 set to be updated
    ---> Package kernel-uek.i686 0:2.6.32-400.33.1.el5uek set to be updated
    --> Processing Dependency: kernel-firmware = 2.6.32-400.33.1.el5uek for package: kernel-uek
    --> Processing Dependency: device-mapper-multipath >= 0.4.9-23.0.1.el5 for package: kernel-uek
    --> Processing Dependency: kexec-tools >= 1.102pre-96.1.1.el5_5.2 for package: kernel-uek
    --> Processing Dependency: mkinitrd >= 5.1.19.6-75.0.5 for package: kernel-uek
    --> Processing Dependency: ql2xxx-firmware for package: kernel-uek
    ---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
    ---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
    ---> Package oraclelinux-release.i386 0:5-10.0.2 set to be updated
    ---> Package util-linux.i386 0:2.13-0.59.0.2.el5_8 set to be updated
    --> Running transaction check
    ---> Package device-mapper-multipath.i386 0:0.4.9-64.0.6.el5 set to be updated
    --> Processing Dependency: kpartx = 0.4.9-64.0.6.el5 for package: device-mapper-multipath
    --> Processing Dependency: device-mapper-multipath-libs = 0.4.9-64.0.6.el5 for package: device-mapper-multipath
    --> Processing Dependency: libmpathpersist.so.0 for package: device-mapper-multipath
    --> Processing Dependency: libmultipath.so for package: device-mapper-multipath
    ---> Package kernel-uek-firmware.noarch 0:2.6.32-400.33.1.el5uek set to be updated
    ---> Package kexec-tools.i386 0:2.0.3-4.0.4.el5 set to be updated
    --> Processing Dependency: mkinitrd = 5.1.19.6-61.0.1 for package: libbdevid-python
    ---> Package mkinitrd.i386 0:5.1.19.6-81.0.2.el5_10 set to be updated
    --> Processing Dependency: nash = 5.1.19.6-81.0.2.el5_10 for package: mkinitrd
    --> Processing Dependency: e2fsprogs >= 1.39-36 for package: mkinitrd
    --> Processing Dependency: iscsi-initiator-utils for package: mkinitrd
    ---> Package ql2xxx-firmware.noarch 0:1.01.01-0.5.el5 set to be updated
    --> Running transaction check
    ---> Package device-mapper-multipath-libs.i386 0:0.4.9-64.0.6.el5 set to be updated
    ---> Package e2fsprogs.i386 0:1.39-36.0.1.el5_9 set to be updated
    --> Processing Dependency: e2fsprogs-libs = 1.39-36.0.1.el5_9 for package: e2fsprogs
    ---> Package iscsi-initiator-utils.i386 0:6.2.0.872-16.0.1.el5 set to be updated
    ---> Package kpartx.i386 0:0.4.9-64.0.6.el5 set to be updated
    ---> Package libbdevid-python.i386 0:5.1.19.6-81.0.2.el5_10 set to be updated
    ---> Package nash.i386 0:5.1.19.6-81.0.2.el5_10 set to be updated
    --> Running transaction check
    --> Processing Dependency: e2fsprogs-libs = 1.39-23.el5 for package: e2fsprogs-devel
    ---> Package e2fsprogs-libs.i386 0:1.39-36.0.1.el5_9 set to be updated
    --> Running transaction check
    ---> Package e2fsprogs-devel.i386 0:1.39-36.0.1.el5_9 set to be updated
    --> Processing Conflict: kernel-uek conflicts udev < 095-14.27.0.1.el5_7.1
    --> Restarting Dependency Resolution with new changes.
    --> Running transaction check
    ---> Package udev.i386 0:095-14.29.0.2.el5 set to be updated
    --> Finished Dependency Resolution
    Dependencies Resolved
    ==================================================================================================================
    Package                               Arch            Version                          Repository           Size
    ==================================================================================================================
    Installing:
    oracle-validated                      i386            1.1.0-18.el5                     el5_latest           19 k
    Updating:
    udev                                  i386            095-14.29.0.2.el5                el5_latest          2.4 M
    Installing for dependencies:
    device-mapper-multipath-libs          i386            0.4.9-64.0.6.el5                 el5_latest          197 k
    iscsi-initiator-utils                 i386            6.2.0.872-16.0.1.el5             el5_latest          1.0 M
    kernel-uek                            i686            2.6.32-400.33.1.el5uek           el5_latest           24 M
    kernel-uek-firmware                   noarch          2.6.32-400.33.1.el5uek           el5_latest          3.8 M
    libXp                                 i386            1.0.0-8.1.el5                    el5_latest           22 k
    libaio-devel                          i386            0.3.106-5                        el5_latest           12 k
    oraclelinux-release                   i386            5-10.0.2                         el5_latest          3.0 k
    ql2xxx-firmware                       noarch          1.01.01-0.5.el5                  el5_latest          459 k
    Updating for dependencies:
    device-mapper-multipath               i386            0.4.9-64.0.6.el5                 el5_latest          122 k
    e2fsprogs                             i386            1.39-36.0.1.el5_9                el5_latest          832 k
    e2fsprogs-devel                       i386            1.39-36.0.1.el5_9                el5_latest          576 k
    e2fsprogs-libs                        i386            1.39-36.0.1.el5_9                el5_latest          120 k
    irqbalance                            i386            2:0.55-17.el5                    el5_latest           21 k
    kexec-tools                           i386            2.0.3-4.0.4.el5                  el5_latest          507 k
    kpartx                                i386            0.4.9-64.0.6.el5                 el5_latest          465 k
    libbdevid-python                      i386            5.1.19.6-81.0.2.el5_10           el5_latest           69 k
    mkinitrd                              i386            5.1.19.6-81.0.2.el5_10           el5_latest          488 k
    nash                                  i386            5.1.19.6-81.0.2.el5_10           el5_latest          1.4 M
    util-linux                            i386            2.13-0.59.0.2.el5_8              el5_latest          1.9 M
    Transaction Summary
    ==================================================================================================================
    Install       9 Package(s)
    Upgrade      12 Package(s)
    Total download size: 38 M
    Is this ok [y/N]:
    Downloading Packages:
    (1/21): oraclelinux-release-5-10.0.2.i386.rpm                                              | 3.0 kB     00:00    
    (2/21): libaio-devel-0.3.106-5.i386.rpm                                                    |  12 kB     00:00    
    (3/21): oracle-validated-1.1.0-18.el5.i386.rpm                                             |  19 kB     00:00    
    (4/21): irqbalance-0.55-17.el5.i386.rpm                                                    |  21 kB     00:00    
    (5/21): libXp-1.0.0-8.1.el5.i386.rpm                                                       |  22 kB     00:00    
    (6/21): libbdevid-python-5.1.19.6-81.0.2.el5_10.i386.rpm                                   |  69 kB     00:00    
    (7/21): e2fsprogs-libs-1.39-36.0.1.el5_9.i386.rpm                                          | 120 kB     00:05    
    (8/21): device-mapper-multipath-0.4.9-64.0.6.el5.i386.rpm                                  | 122 kB     00:05    
    (9/21): device-mapper-multipath-libs-0.4.9-64.0.6.el5.i386.rpm                             | 197 kB     00:13    
    (10/21): ql2xxx-firmware-1.01.01-0.5.el5.noarch.rpm                                        | 459 kB     00:30    
    (11/21): kpartx-0.4.9-64.0.6.el5.i386.rpm                                                  | 465 kB     00:39    
    (12/21): mkinitrd-5.1.19.6-81.0.2.el5_10.i386.rpm                                          | 488 kB     00:26    
    (13/21): kexec-tools-2.0.3-4.0.4.el5.i386.rpm                                              | 507 kB     00:14    
    (14/21): e2fsprogs-devel-1.39-36.0.1.el5_9.i386.rpm                                        | 576 kB     00:16    
    (15/21): e2fsprogs-1.39-36.0.1.el5_9.i386.rpm                                              | 832 kB     00:25    
    (16/21): iscsi-initiator-utils-6.2.0.872-16.0.1.el5.i386.rpm                               | 1.0 MB     00:30    
    (17/21): nash-5.1.19.6-81.0.2.el5_10.i386.rpm                                              | 1.4 MB     00:42    
    (18/21): util-linux-2.13-0.59.0.2.el5_8.i386.rpm                                           | 1.9 MB     02:10    
    (19/21): udev-095-14.29.0.2.el5.i386.rpm                                                   | 2.4 MB     02:43    
    (20/21): kernel-uek-firmware-2.6.32-400.33.1.el5uek.noarch.rpm                             | 3.8 MB     04:51 
    21/21): kernel-uek-2.6.32-400.33.1.el5 (97%) 96% [===========================- ]  13 kB/s |  23 MB     01:09 ETA
    (21/21): kernel-uek-2.6.32-400.33.1.el5uek.i686.rpm                                        |  24 MB     28:57    
    Total                                                                              15 kB/s |  38 MB     43:58    
    warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159
    el5_latest/gpgkey                                                                          | 1.4 kB     00:00    
    Importing GPG key 0x1E5E0159 "Oracle OSS group (Open Source Software group) <[email protected]>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    Is this ok [y/N]: y
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating       : e2fsprogs-libs                                                                            1/33
    error: failed to stat /mnt/hgfs: No such file or directory
      Updating       : e2fsprogs                                                                                 2/33
      Updating       : udev                                                                                      3/33
      Updating       : util-linux                                                                                4/33
    warning: /etc/pam.d/login saved as /etc/pam.d/login.rpmsave
      Updating       : kpartx                                                                                    5/33
      Installing     : libXp                                                                                     6/33
      Updating       : kexec-tools                                                                               7/33
      Installing     : iscsi-initiator-utils                                                                     8/33
      Updating       : irqbalance                                                                                9/33
      Installing     : device-mapper-multipath-libs                                                             10/33
      Updating       : device-mapper-multipath                                                                  11/33
      Installing     : oraclelinux-release                                                                      12/33
      Installing     : ql2xxx-firmware                                                                          13/33
      Updating       : nash                                                                                     14/33
      Installing     : kernel-uek-firmware                                                                      15/33
      Installing     : libaio-devel                                                                             16/33
      Updating       : e2fsprogs-devel                                                                          17/33
      Updating       : mkinitrd                                                                                 18/33
      Installing     : kernel-uek                                                                               19/33
      Updating       : libbdevid-python                                                                         20/33
      Installing     : oracle-validated                                                                         21/33
      Cleanup        : e2fsprogs                                                                                22/33
      Cleanup        : mkinitrd                                                                                 23/33
      Cleanup        : irqbalance                                                                               24/33
      Cleanup        : e2fsprogs-libs                                                                           25/33
      Cleanup        : device-mapper-multipath                                                                  26/33
      Cleanup        : libbdevid-python                                                                         27/33
      Cleanup        : udev                                                                                     28/33
      Cleanup        : e2fsprogs-devel                                                                          29/33
      Cleanup        : kpartx                                                                                   30/33
      Cleanup        : nash                                                                                     31/33
      Cleanup        : kexec-tools                                                                              32/33
      Cleanup        : util-linux                                                                               33/33
    Installed:
      oracle-validated.i386 0:1.1.0-18.el5                                                                           
    Dependency Installed:
      device-mapper-multipath-libs.i386 0:0.4.9-64.0.6.el5     iscsi-initiator-utils.i386 0:6.2.0.872-16.0.1.el5     
      kernel-uek.i686 0:2.6.32-400.33.1.el5uek                 kernel-uek-firmware.noarch 0:2.6.32-400.33.1.el5uek   
      libXp.i386 0:1.0.0-8.1.el5                               libaio-devel.i386 0:0.3.106-5                         
      oraclelinux-release.i386 0:5-10.0.2                      ql2xxx-firmware.noarch 0:1.01.01-0.5.el5              
    Updated:
      udev.i386 0:095-14.29.0.2.el5                                                                                  
    Dependency Updated:
      device-mapper-multipath.i386 0:0.4.9-64.0.6.el5          e2fsprogs.i386 0:1.39-36.0.1.el5_9                    
      e2fsprogs-devel.i386 0:1.39-36.0.1.el5_9                 e2fsprogs-libs.i386 0:1.39-36.0.1.el5_9               
      irqbalance.i386 2:0.55-17.el5                            kexec-tools.i386 0:2.0.3-4.0.4.el5                    
      kpartx.i386 0:0.4.9-64.0.6.el5                           libbdevid-python.i386 0:5.1.19.6-81.0.2.el5_10        
      mkinitrd.i386 0:5.1.19.6-81.0.2.el5_10                   nash.i386 0:5.1.19.6-81.0.2.el5_10                    
      util-linux.i386 0:2.13-0.59.0.2.el5_8                  
    Complete!
    [root@oel5 yum.repos.d]#
    [root@oel5 yum.repos.d]# rpm -qa |grep oracle-valid
    oracle-validated-1.1.0-18.el5
    Thnaks ..

  • How to install ASM on Oracle Enterprise Linux 6.3

    I am a bit lost .. I have Oracle Enterprise Linux 6.3 and ULN subscription:
    The only package available through yum is oracleasm-support.x86_64
    I have downloaded http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm but i am still missing the kernel drivers i guess:
    [root@testdb1 user]# uname -r
    2.6.32-279.5.2.el6.x86_64
    [root@testdb1 user]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.3 (Santiago)
    [root@testdb1 user]# cat /etc/oracle-release
    Oracle Linux Server release 6.3
    [root@testdb1 user]# yum repolist
    Loaded plugins: rhnplugin, security
    repo id repo name status
    ol6_x86_64_UEK_latest Latest Unbreakable Enterprise Kernel for Oracle Linux 6 (x86_64) 64
    ol6_x86_64_latest Oracle Linux 6 Latest (x86_64) 17,685
    repolist: 17,749
    [root@testdb1 user]# yum list updates
    Loaded plugins: rhnplugin, security
    [root@testdb1 user]# oracleasm
    oracleasm oracleasm-discover
    [root@testdb1 user]# oracleasm update-driver
    Kernel:          2.6.32-279.5.2.el6.x86_64 x86_64
    Driver name:     oracleasm-2.6.32-279.5.2.el6.x86_64
    Driver for kernel 2.6.32-279.5.2.el6.x86_64 does not exist
    [root@testdb1 user]# yum search oracleasm
    Loaded plugins: rhnplugin, security
    ========================================================================================================== N/S Matched: oracleasm ===========================================================================================================
    oracleasm-support.x86_64 : The Oracle Automatic Storage Management support programs.
    oracleasmlib.x86_64 : The Oracle Automatic Storage Management library userspace code.
    What am i missing ?

    953423 wrote:
    Sys admins say they have kernel panics and issues with current hardware and UEK. :( Yet another problem...What hardware are you using? The UEK that ships with 6.3 is based on a Linux 3.0.16 kernel so it should have much better hardware support than the original Red Hat kernel. Though, if you have ULN access, you should open an SR for this.

  • Uln-yum-mirror [Errno 14] PYCURL ERROR 22 - The requested URL returned error: 416

    Server is running Oracle Linux 6.5 and can receive updates from ULN without issue, I could easily upgrade the local servers version of Bash.  The problem I am having is that the server is the local yum server however it is not downloading updates when I run /usr/bin/uln-yum-mirror I am receiving the errors below
    [root@cr-svc-orayum1 yum]# cat /etc/oracle-release
    Oracle Linux Server release 6.5
    [root@cr-svc-orayum1 yum]# yum repolist
    Loaded plugins: refresh-packagekit, rhnplugin, security
    This system is receiving updates from ULN.
    ol6_x86_64_UEKR3_latest/primary                                                                                                       | 8.5 MB     00:21
    ol6_x86_64_UEKR3_latest                                                                                                                              234/234
    ol6_x86_64_latest/primary                                                                                                             |  41 MB     01:46
    ol6_x86_64_latest                                                                                                                                26159/26159
    repo id                                          repo name                                                                                             status
    ol6_x86_64_UEKR3_latest                          Unbreakable Enterprise Kernel Release 3 for Oracle Linux 6 (x86_64) - Latest                             234
    ol6_x86_64_latest                                Oracle Linux 6 Latest (x86_64)                                                                        26,159
    repolist: 26,393
    [root@cr-svc-orayum1 yum]# yum clean all
    Loaded plugins: refresh-packagekit, rhnplugin, security
    Cleaning repos: ol5_x86_64_UEK_base ol5_x86_64_ksplice ol5_x86_64_latest ol6_x86_64_UEKR3_latest ol6_x86_64_latest
    Cleaning up Everything
    [root@cr-svc-orayum1 yum]#
    [root@cr-svc-orayum1 yum]# /usr/bin/uln-yum-mirror
    ## BEGIN PROCESSING ol5_x86_64_ksplice ##
    Channel Dir: /var/www/html/yum/OracleLinux/OL5/ksplice/x86_64
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is receiving updates from ULN.
    Saving Primary metadata
    Saving file lists metadata
    Saving other metadata
    Generating sqlite DBs
    Sqlite DBs complete
    Wrote: /var/www/html/yum/OracleLinux/OL5/ksplice/x86_64/repodata/updateinfo.xml.gz
               type = updateinfo
           location = repodata/updateinfo.xml.gz
           checksum = bd8daef04c28ee5907c0482c5a55e5fdb2c56fae
          timestamp = 1412066205.18
      open-checksum = cd80d41782f6770822485ade46f1a8bf75cfa20b
    Wrote: /var/www/html/yum/OracleLinux/OL5/ksplice/x86_64/repodata/repomd.xml
    ## END PROCESSING ol5_x86_64_ksplice ##
    ## BEGIN PROCESSING ol5_x86_64_latest ##
    Channel Dir: /var/www/html/yum/OracleLinux/OL5/latest/x86_64
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is receiving updates from ULN.
    Could not retrieve package alsa-lib-devel-1.0.17-1.el5.i386. Error was failed to retrieve getPackage/alsa-lib-devel-1.0.17-1.el5.i386.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package alsa-lib-devel-1.0.17-1.el5.x86_64. Error was failed to retrieve getPackage/alsa-lib-devel-1.0.17-1.el5.x86_64.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package alsa-utils-1.0.17-7.el5.x86_64. Error was failed to retrieve getPackage/alsa-utils-1.0.17-7.el5.x86_64.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package 5:am-utils-6.1.5-9.el5_10.x86_64. Error was failed to retrieve getPackage/am-utils-6.1.5-9.el5_10.x86_64.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package amanda-devel-2.5.0p2-9.el5.i386. Error was failed to retrieve getPackage/amanda-devel-2.5.0p2-9.el5.i386.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package amanda-server-2.5.0p2-9.el5.x86_64. Error was failed to retrieve getPackage/amanda-server-2.5.0p2-9.el5.x86_64.rpm from ol5_x86_64_latest

    First, you need to upgrade to the latest version of uln-yum-mirror to avoid these errors in future. The latest version has mitigation tools to remove RPMs that fail GPG checking.
    In this instance, you need to manually delete the RPMs that pyCURL can't download. Once you delete all the RPMs, the next run of uln-yum-mirror will download them fresh and recreate the yum metadata locally.

  • What the name of the  Adobe Flash package  I can install with yum .

    Hello,
    What the name of the Adobe Flash package I can install with yum . I am using oracle linux 6.4 x86_64.
    Thanks Glenn

    Admin1001 wrote:
    You will need to install the flash-plugin package.
    # yum install flash-pluginThere is no such installation package:
    # yum repolist
    Loaded plugins: security
    repo id                            repo name                                                                                  status
    ol6_UEK_latest                     Latest Unbreakable Enterprise Kernel for Oracle Linux 6Server (x86_64)                        169
    ol6_latest                         Oracle Linux 6Server Latest (x86_64)                                                       21,382
    repolist: 21,551
    # yum list flash-plugin
    Loaded plugins: security
    Error: No matching Packages to list

  • Fix linux kernel vulnerability

    At the moment I have one OEL server ... during boot up it reports
    Red Hat Nash 5.1.19.6 ( yes it reports Red Hat even though I built it from an OEL download.)
    Once up, a 'uname -a' reports '2.6.18-164.el5 x86-64.'
    Now I have a directive to upgrade the kernel if the kernel is a 2.6.x release prior to 20 Sept. 2010 for Red Hat Enterprise v5 servers)
    I assume that even though this was built from an OEL download, the fact that it is still showing "Red Hat" at boot time means I'm still on a Red Hat distro.
    How do I make the upgrade?
    As this is a trial machine, we have not purchased a support contract. That is not out of the question, but short term I'd rather not wait on our arcane purchasing system.

    jonjac wrote:
    The OSS document that you mentioned lists the latest kernels as of September 2010, and describes the changes made.
    Why are you afraid that you might not be in compliance?
    Because I don't know enough about what I'm doing to be able to confirm that the specific issue has been addressed.
    I'll be the first to admit that I may be staring the answer in the face and simply not recognizing it because I'm not familiar enough with administering Linux versions/patches, etc. I'm comfortable as a linux user and as a DBA with my db's on linux (actually, I stay away from Windows as much as possible), but this is a level of os admin I've never had to deal with.
    Part of what leaves me a bit uncomfortable is the statement in my directive that the directive states
    =========
    Affected Software/Patch(es):
    Linux Kernel 2.6.X releases prior to 20 September 2010 *
    ===========================
    but even with the latest applied updates, I get
    [root@lnxsrv02 ~]# uname -a
    Linux lnxsrv02.mydomain 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/LinuxNote that - with no further reference - the date of my update level would have me at an "Affected" level.
    If I understand correctly, all you need to do is install the latest kernel update of OEL, because that's the distribution you are running.
    What repositories does your system use? Which kernel updates are automatically available?
    Here's a complete accounting of what I've done ...
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.20 13:39:51 =~=~=~=~=~=~=~=~=~=~=~=
    [root@lnxsrv02 ~]# yum install kernel
    Loaded plugins: security
    el5_u4_base | 1.1 kB 00:00
    Setting up Install Process
    Package kernel-2.6.18-164.el5.x86_64 already installed and latest version
    Nothing to do
    [root@lnxsrv02 ~]# cat /etc/enterprise-release
    Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
    [root@lnxsrv02 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.4 (Tikanga)
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.20 16:21:01 =~=~=~=~=~=~=~=~=~=~=~=
    [root@lnxsrv02 yum.repos.d]# yum install kernel
    Loaded plugins: security
    el5_u5_base | 1.1 kB 00:00
    el5_u5_base/primary
    <snip>
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.21 10:44:59 =~=~=~=~=~=~=~=~=~=~=~=
    [root@lnxsrv02 ~]# yum update
    Loaded plugins: security
    el5_u5_base | 1.1 kB 00:00
    ol5_u5_base | 957 B 00:00
    Skipping security plugin, no data
    <snip>
    Complete!
    [root@lnxsrv02 ~]# reboot
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.21 11:30:27 =~=~=~=~=~=~=~=~=~=~=~=
    [root@lnxsrv02 ~]# cat /etc/enterprise-release
    Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
    [root@lnxsrv02 ~]# uname -a
    Linux lnxsrv02.mydomain 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    [root@lnxsrv02 ~]# yum install oracle-linux
    Loaded plugins: security
    el5_u5_base | 1.1 kB 00:00
    ol5_u5_base | 957 B 00:00
    Setting up Install Process
    Resolving Dependencies
    <snip>
    Complete!
    [root@lnxsrv02 ~]# reboot
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.21 12:14:01 =~=~=~=~=~=~=~=~=~=~=~=
    [root@lnxsrv02 ~]# uname -a
    Linux lnxsrv02.mydomain 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    [root@lnxsrv02 ~]# cat /etc/enterprise-release
    Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
    [root@lnxsrv02 ~]# yum list kernel
    Loaded plugins: security
    Installed Packages
    kernel.x86_64 2.6.18-164.el5 installed
    kernel.x86_64 2.6.32-100.0.19.el5 installed
    [root@lnxsrv02 ~]# yum repolist all
    Loaded plugins: security
    repo id repo name status
    el5_addons Enterprise Linux 5 - x86_64 - addons disabled
    el5_ga_base Enterprise Linux 5 GA - x86_64 - base disabled
    el5_oracle_addons Enterprise Linux 5 - x86_64 - oracle_addons disabled
    el5_u1_base Enterprise Linux 5 U1 - x86_64 - base disabled
    el5_u2_base Enterprise Linux 5 U2 - x86_64 - base disabled
    el5_u3_base Enterprise Linux 5 U3 - x86_64 - base disabled
    el5_u4_base Enterprise Linux 5 U4 - x86_64 - base disabled
    el5_u5_base Enterprise Linux 5 U5 - x86_64 - base enabled: 4,372
    ol5_u5_base Oracle Linux 5 - U5 - x86_64 - base enabled: 53
    repolist: 4,425

  • Yum list command throws repomd.xml file damaged error on OEL6.4 client

    Hi,
    I have an OEL6.4 client and it points to our internal YUM server. When i run yum list command on the client it throws an error given below,
    [root@client 6.4]# yum list
    Loaded plugins: security
    ol6_base                                                 |  982 B     00:00
    http://server1/yum/6/Latest/patch/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for ol6_UEK_latest: Damaged repomd.xml file
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_UEK_latest. Please verify its path and try again
    Can someone help me in fixing this issue.

    Let me explain a bit about my setup. I have a YUM server which is located in US and clients are located in both US and in UK.
    Working server in US and details requested are below,
    OS - Oracle Linux Server release 5.7
    YUM rpm - yum-3.2.22-37.0.1.el5
    # yum clean all
    Loaded plugins: rhnplugin, security
    Cleaning up Everything
    # yum repolist
    Loaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    ol6_base                                                 | 1.9 kB     00:00
    ol6_base/primary_db                                      | 4.7 MB     00:00
    ol6_patch                                                | 1.9 kB     00:00
    ol6_patch/primary_db                                     | 1.7 MB     00:00
    repo id   repo name                                                       status
    ol6_base  Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64)  6,245
    ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64)    745
    repolist: 6,990
    ========================================
    2 Servers in UK which are not working,
    Client 1:-
    OS - Oracle Linux Server release 6.4
    YUM rpm - yum-3.2.29-40.0.1.el6.noarch
    # yum clean all
    Loaded plugins: security
    Cleaning repos: ol6_base ol6_patch
    Cleaning up Everything
    YUM repolist:-
    #yum repolist
    Loaded plugins: security
    ol6_base                                                 |  984 B     00:00
    http://yum-server/yum/6/Latest/base/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for ol6_base: Damaged repomd.xml file
    Trying other mirror.
    repo id   repo name                                                       status
    ol6_base  Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64)  0
    ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64)  0
    repolist: 0
    Client2:-
    OS - Oracle Linux Server release 5.9
    YUM rpm - yum-3.2.22-40.0.1.el5
    # yum clean all
    Loaded plugins: rhnplugin, security
    Cleaning up Everything
    =====================================
    Server in UK which is working,
    OS - Oracle Linux Server release 5.8
    YUM rpm - yum-3.2.22-39.0.2.el5
    # yum clean all
    Loaded plugins: rhnplugin, security
    Cleaning up Everything
    YUM repolist -
    yum repolist
    Loaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    ol6_base                                                 | 1.9 kB     00:00
    ol6_base/primary_db                                      | 4.7 MB     00:02
    ol6_patch                                                | 1.9 kB     00:00
    ol6_patch/primary_db                                     | 1.7 MB     00:00
    repo id   repo name                                                       status
    ol6_base  Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64)  6,245
    ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64)    745
    repolist: 6,990
    ===================================
    YUM server details are below,
    OS - Oracle Linux Server release 5.8
    YUM rpm - yum-3.2.22-39.0.2.el5
    Looks like issue with some of the clients in UK, can you tell me the config files of the clients which i should take a look and that should help us in fixing the problem.
    Thank you for your sincere efforts in spending so much of your valuable time to fix this problem. I truly appreciate it.

  • Q. regarding yum install - no package available

    Configuring OL 5.6 under VMworkstation on my laptop.
    Created vm and am going through pre-reqs for installing Oracle rdbms 11.2. As standard practice I configured to go to oracle's public yum server and installed 'oracle-validated'. Then I double-checked the required packages listed in the Installation Guide. Two of them still weren't installed, so I tried to go for them individually with 'yum install <pkg name>. The first, numactl-devel, installed fine. However ...
    [root@lnxsrv01 tmp]# yum install compat-libstdc++
    Loaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    Setting up Install Process
    No package compat-libstdc++ available.
    Nothing to doyet when I go to http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/i386/, I see 'compat-libstdc++-33-3.2.3-61.i386.rpm' listed just fine.
    my config - /etc/yum.repos.d/public-yum-el5-6.repo has enabled:
    [ol5_u6_base]
    name=Oracle Linux $releasever - U6 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=1So what am I missing that it insists this package is not available?

    Gokhan Atil wrote:
    Hi Ed,
    You should use yum list (not repolist - my bad). Here it is:
    [root@oelgrid ~]# yum list | grep compat-libstdc
    This system is not registered with ULN.
    ULN support will be disabled.
    compat-libstdc++-296.i386                2.96-138                    installed 
    compat-libstdc++-33.i386                 3.2.3-61                    installed 
    [root@oelgrid ~]# yum install compat-libstdc++-33.i386
    Loaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    Setting up Install Process
    Package compat-libstdc++-33-3.2.3-61.i386 already installed and latest version
    Nothing to doRegards
    Gokhan AtilInteresting. I got exactly the same results. So in the end, it looks like perhaps the required package is installed ... though the installation guide specified
    compat-libstdc++-33-3.2.3
    compat-libstdc++-33-3.2.3 (32 bit)
    So ....
    [root@lnxsrv01 tmp]# rpm -q compat-libstdc++
    package compat-libstdc++ is not installed
    [root@lnxsrv01 tmp]# rpm -q compat-libstdc
    package compat-libstdc is not installed
    [root@lnxsrv01 ~]# yum list | grep compat-libstdc
    This system is not registered with ULN.
    ULN support will be disabled.
    compat-libstdc++-296.i386                2.96-138                    installed
    compat-libstdc++-33.i386                 3.2.3-61                    installed
    [root@lnxsrv01 ~]# yum install compat-libstdc
    Loaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    Setting up Install Process
    No package compat-libstdc available.
    Nothing to do
    [root@lnxsrv01 tmp]# yum install compat-libstdc++-33.i386
    Loaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    Setting up Install Process
    Package compat-libstdc++-33-3.2.3-61.i386 already installed and latest version
    Nothing to do

Maybe you are looking for