Fedora Plans Changes to Filesystem Hierarchy

Fedora developers, Harald Hoyer and Kay Sievers (both Red Hat employees), are proposing that all executable files are moved into the /usr/bin directory and libraries into /usr/lib or /usr/lib64. The UsrMove proposal is an: attempt to clean up the mess that was made when the /sbin and /bin directories were first split off from each other, and would essentially pull in every component of the operating system to a single mounted volume. Err, they have been split off from each other since the dawn of Unix without any problem. According to Lennart Poettering: Having all static, distro-specific, sharable OS in

Fedora SPICE: Cut and Paste between Guest and Host

If you’re already using SPICE with your Fedora or RHEL guests and you are not using the SPICE guest agent, you should seriously consider installing the spice-vdaguest guest agent. What functionality does spice-vdagent provide? Amongst other things, the following: Move mouse continuously within guest and client without pressing Shift-F12 Copy and Paste between guest and client Automatic guest resolution adjustment while entering fullscreen mode To install spice-vdagent on Fedora 15/16 or RHEL/CentOS 6/6.1: # yum -y install spice-vdagent # chkconfig spice-vdagentd on # reboot A reboot is necessary. See here if you want to information on the SPICE agent protocol.

Set up local RPM Installation Repository

There are a number of ways of installing additional RPM packages from installation media. However, if your network is fast and you are installing the same packages on a number of systems, it sometimes is easier to set up a simple local package repository and use yum to install the packages from there. This post shows you how to do this. Copy the new packages, or even the contents of an entire distribution to a suitable subdirectory on a local webserver. For example, if you are using an Apache webserver on RHEL or Fedora, suitable locations would probably be /var/www/html/repos/rhel6/

List packages in RPM Database using C

Here is one way of listing installed RPM packages. It works with all versions of CentOS 5, RHEL5 and up to Fedora 14. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <rpm/rpmlib.h> #include <rpm/header.h> #include <rpm/rpmdb.h> int main(int argc, char *argv[]) { rpmdbMatchIterator mi; int type, count; char *name; rpmdb db; Header h; rpmReadConfigFiles( NULL, NULL ); if (rpmdbOpen( "", &db, O_RDONLY, 0644 ) != 0) { fprintf( stderr, "ERROR: Cannot open RPM databasen"); exit(1); } mi = rpmdbInitIterator(db, RPMDBI_PACKAGES, NULL, 0); while ((h = rpmdbNextIterator(mi))) { headerGetEntry(h, RPMTAG_NAME, &type, (void **) &name, &count); printf("%sn", name);

Fedora: Specify Repo when Booting Installer

To specify an installation source for Fedora, CentOS, Red Hat or Scientific Linux, use the linux repo= option at the boot prompt: For example: linux repo=cdrom:device linux repo=ftp://username:password@URL linux repo=http://URL linux repo=hd:device linux repo=nfs:options:server:/path linux repo=nfsiso:options:server:/path In these examples, cdrom refers to a CD or DVD drive, ftp refers to a location accessible by FTP, http refers to a URL accessible by HTTP, hd refers to an ISO image file accessible on a hard drive partition, nfs refers to an expanded tree of installation files accessible by NFS, and nfsiso refers to an ISO image file accessible by NFS. See