Category Archives: rpm

PHPHOST BLOG

Web Hosting Related Articles You May Need

How to programmatically determine the highest version kernel RPM installed?

Background

Recently on the StackExchange site Unix & Linux the following question came up which seemed easy enough to answer.

How to programmatically determine the highest version kernel RPM installed?

This turned out to be trickier than I originally thought. What follows is my ultimate answer along with several failed attempts. I leave them so that others can […]

Continue reading

Posted in centos, fedora, package management, rhel, rpm, Syndicated, sysadmin, tip, tutorials | Comments Off on How to programmatically determine the highest version kernel RPM installed?

[one-liner]: Using yum-builddep to Speed Up the Building of SRPMs on Fedora & CentOS

Background

I just came across this nifty little tool called yum-builddep, which is part of the yum-utils package. It can be a really big time saver if you need to build source RPMS (SRPMs). What does it do? yum-builddep, installs all the RPM dependencies required to build a given SRPM.

Solution

Installation is a snap, it’s just part […] Continue reading

Posted in centos, fedora, one-liner, package management, redhat, rhel, rpm, Syndicated | Comments Off on [one-liner]: Using yum-builddep to Speed Up the Building of SRPMs on Fedora & CentOS

CentOS RPM Tutorial Part 4 – Another Example of Rolling your Own .spec File

Getting Started

In this 4th installment of my series on RPM packages I’m going to show another example where I package up a tarball that I’ve created, and roll it into an RPM file. For this example I’ll be packaging up a Perl script and a man page. NOTE: Refer to my previous posts (part 1, […] Continue reading

Posted in centos, fedora, redhat, rhel, rpm, Syndicated, tip, tutorials | Comments Off on CentOS RPM Tutorial Part 4 – Another Example of Rolling your Own .spec File

CentOS RPM Tutorial Part 3 – Building your own RPM of JBoss

Getting Started

In this 3rd instalment of my series on RPM packages I’m going to show an example where I package up a zip file and roll it into an RPM file. For this example I’ll be packaging the Java Application Server, JBoss 4.2.3.GA. NOTE: Refer to my previous posts (part 1 & part 2) regarding […] Continue reading

Posted in centos, linux, package management, rhel, rpm, Syndicated, tutorials | Comments Off on CentOS RPM Tutorial Part 3 – Building your own RPM of JBoss

Getting the BlogTNG plugin working in Dokuwiki under CentOS 5

Background

BlogTNG is a blogging plugin that provides a pretty basic though usable blog within the wiki software, Dokuwiki. I wanted to try this out on one of the sites I support but when I installed the BlogTNG plugin my Dokuwiki install just started displaying blank pages. The only hint of a problem was in the […] Continue reading

Posted in centos, dokuwiki, package management, PHP, plugins, redhat, rpm, Syndicated, tip, tips & tricks | Comments Off on Getting the BlogTNG plugin working in Dokuwiki under CentOS 5

[one-liner]: Managing RPM Repo GPG keys on a RPM base Distro (Fedora/CentOS/RHEL)

Background

Occasionally you might need to remove an RPM GPG signing key from your system. These are the keys that typically get installed using a command similar to this:

1
rpm –import http://packages.atrpms.net/RPM-GPG-KEY.atrpms

Turns out they’re pretty easy to remove….

Solution

The key is to understand that most of the same commands that you’d use to query your RPM database apply […] Continue reading

Posted in centos, fedora, linux, one-liner, package management, redhat, rhel, rpm, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Managing RPM Repo GPG keys on a RPM base Distro (Fedora/CentOS/RHEL)

Delta RPMs & yum-presto under Fedora 14

Background

Yum-presto is a plugin for yum that looks for deltarpms rather than RPMs whenever they are available. This has the potential of saving a lot of bandwidth when downloading updates.

Presto on fedoraproject.org

Installation

1
yum install yum-presto

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
% yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package dcraw.x86_64 0:9.06-1.fc14 […] Continue reading

Posted in centos, fedora, package management, redhat, rhel, rpm, Syndicated, tips & tricks | Comments Off on Delta RPMs & yum-presto under Fedora 14

Connecting to Windows 7 Remote Desktops (RDP) from Fedora 14 using the app FreeRDP

Background

In newer versions of Remote Desktop (RDP) that are included with Vista, Win 7, and Win Server 2008, RDP now includes something called NLA. Existing clients under Linux don’t appear to support this type of authentication, except for one, called FreeRDP.

rdesktop/tsclient

rdesktop is a RDP client specifically for Linux. However it doesn’t appear to work with […] Continue reading

Posted in fedora, linux, redhat, remote desktop, rpm, Syndicated, sysadmin, tip, tips & tricks | Comments Off on Connecting to Windows 7 Remote Desktops (RDP) from Fedora 14 using the app FreeRDP

[one-liner]: Locking the Eject Button on a CD/DVD Drive Under Fedora 14/CentOS 5 on a Laptop

Background

My kids are constantly trying to touch my laptop. They’ve especially become obsessed with the eject button on my CD/DVD drive. So I started looking for a way to enable/disable the button so that they would hopefully stop trying to eject it all the time.

Solution

You might want to try out cdctl. It’s available here. This […] Continue reading

Posted in app, centos, fedora, linux, one-liner, package management, redhat, rhel, rpm, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Locking the Eject Button on a CD/DVD Drive Under Fedora 14/CentOS 5 on a Laptop

[one-liner]: Using Yum to Download RPMs under Fedora, CentOS, and RHEL

Background

From time to time I’ve run into an RPM that won’t install via yum. These usually pop up because I’ve mixed packages in from a 3rd party repository, and the 3rd party package has some overlapping files with an already installed RPM.

Problem

Here’s an example that happened to me recently on a Fedora 10 system where […] Continue reading

Posted in centos, linux, one-liner, package management, redhat, rhel, rpm, Syndicated, tip, tips & tricks, yum | Comments Off on [one-liner]: Using Yum to Download RPMs under Fedora, CentOS, and RHEL