Tags » RedHat

CentOS and SL: Netinstall Shortcut

This is just a short item that can save you some time and bandwidth.

Using the netinstall disk from any RHEL 7.x clone requires you have already the mirror from which you plan to install the packages. 135 more words

Computers

Today’s Top 5 Business News Headlines

• Jobless Claims Fall to 289,000
• Oil Falls
• Stocks Have Best Day Since November 2011
• RedHat 2015 Earnings Raised
• Amazon Launches 1-Hour Delivery Service in Manhattan

Business Headlines

The OpenStack opportunity: so how big is it?

Calculating how much revenue — or profit — commercial vendors wring out of open-source software is a tough nut to crack.

One reason is that the vendors themselves muddy the waters. 777 more words

malibehiribae reblogged this on malibehiribae.

htop atop tmux on XenServer 6.x

Save me from myself if you ever really cared
Save me from myself, tell me you’re not scared
(Damage Plan – Save me)

If you want to run diagnostic commands on XenServer, you’re pretty much limited with available options. 215 more words

Linux

Create OpenVZ RHEL 5.5 Template With Minimal Xwindows

This guide is a reference on how to create a Red Hat Enterprise Linux v5.5 64bit template for OpenVZ. The template will support for running xwindows applications using… 3,086 more words

Linux

how to remove old kernels - CentOS/Red Hat

  1. Install additional utilities of yum package manager
    yum install yum-utils -y
  2. Run package cleaner, leaving two kernels on the /boot partition:
    package-cleanup --oldkernels --count=2

Note: 9 more words

RedHat

Using RPMs/YUM

(build packages using rpm-build)
$ yum install rpm-build

(install/update/erase packages using yum)
$ yum update|install|erase package

(install ignoring package signature)
$ yum install package --nogpgcheck 

(install package locally)
$ yum localinstall package.rpm

(extract files from package)
$ rpm2cpio package.rpm | cpio -idmv

(list files from package)
$ rpm -qlp package.rpm or rpm -ql package or repoquery --list package

(search for package that provides a file)
$ yum provides */file

(download rpms from repo w/o install using yum-utils)
$ yum install yum-utils
$ yumdownloader httpd --resolve

(download rpms from repo w/o install using yum-downloadonly)
$ yum install yum-downloadonly
$ yum update package -y --downloadonly --downloaddir=/opt

(list installed repos, add/remove repo to /etc/yum.repos.d/)
$ yum repolist

(create a local repo, see http://yum.baseurl.org/wiki/RepoCreate)
(you should do this from within a rpm, see http://wiki.centos.org/AdditionalResources/Repositories/RPMForge)
$ yum install createrepo
$ cp package.rpm /srv/my/repo/`uname -i`/RPMS/
$ createrepo /srv/my/repo/`uname -i`/ or createrepo --update /srv/my/repo/`uname -i`/
$ echo "\nname = Myrepo-$releasever\nbaseurl = file:///srv/my/repo/$basearch/" > /etc/yum.repos.d/myrepo.repo

(sync all packages from the ’updates’ repo to the repos directory)
$ reposync -p repos --repoid=updates

(list/do/undo transactions using yum history, see http://yum.baseurl.org/wiki/YumHistory)
$ yum history list|info|undo|redo

(using groups, see http://yum.baseurl.org/wiki/YumGroups)
$ yum grouplist|groupinfo groupname|groupinstall groupname|groupupdate groupname|groupremove groupname

(creating groups)
$ yum-groups-manager -n "My Group" --id=mygroup --save=mygroups.xml --mandatory package1 package2 package2
$ createrepo -g /path/to/mygroups.xml /srv/my/repo

(cleanup yum cache)
$ yum clean all
… 11 more words