Tags » RPM

Push to the redline

He he sorry bro yang suka mampir judule agak anehh, biar kelihatan keren aja :-D :-D :-D wkwkwk, ini sih bagian dari keseharian TB dalam berkendara, kebiasaan nyiksa kendaraan untuk sampai pada redline rpmnya he he. 67 more words


#reverb14 // Work It

Day 17 – Work – What sort of work did you do in 2014?

I could bore you to tears talking about government contractor pricing… … 734 more words


Thank god for indoor cycling.

The winter has finally arrived and it’s getting a little harder to get out on the bike and brave the change in climate and light. So far we’ve been very lucky here in Scotland, but the last few days have shown that winter is finally here, with all the nasty stuff that comes with it. 1,008 more words

Healthy And Happy

How to package proprietary software

I like to work with open source code. But it is not always possible. Sometimes you have to deal with proprietary code. And sometimes you have to distribute it. 260 more words

Red Hat Enterprise Linux

Why Group Exercise Works

Humans are by nature social creatures, which is why most people take to group exercises like duck to water. Exercising in a group has been around for generations. 640 more words

Coffs Coast Health Club

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