Tag Archives: APT

use apt-get on Redhat

1) download

http://rpm.pbone.net/index.php3?stat=26&dist=52&size=2655977&name=apt-0.5.15lorg3.2-3.el5.rf.x86_64.rpm

2) modify /etc/apt/apt.conf.d/gpg-checker.conf

RPM::GPG-Check false;
Scripts::PM::Pre:: gpg-checker.lua;

RPM::GPG-Check false;Scripts::PM::Pre:: gpg-checker.lua;

3) modify /etc/apt/sources.list.d/os.list

# Name: Operating system and updates

### Red Hat Enterprise Linux

repomd http://mirror.centos.org centos/5.5/os/x86_64

repomd http://mirror.centos.org centos/5.5/updates/x86_64

repomd http://mirror.centos.org centos/5.5/extras/x86_64

repomd http://mirror.centos.org centos/5.5/fasttrack/x86_64

#repomd http://mrepo rhel5.5s-x86_64/RPMS.os

#repomd http://mrepo rhel5.5s-x86_64/RPMS.updates

#rpm http://mrepo rhel5.5s-x86_64 os updates

### Fedora Core Linux

#repomd http://ayo.freshrpms.net fedora/linux/$(VERSION)/$(ARCH)/core

#repomd http://ayo.freshrpms.net fedora/linux/$(VERSION)/$(ARCH)/updates

#rpm http://ayo.freshrpms.net fedora/linux/$(VERSION)/$(ARCH) core updates

### Red Hat Linux

#repomd http://ayo.freshrpms.net redhat/$(VERSION)/$(ARCH)/os

#repomd h#ttp://ayo.freshrpms.net redhat/$(VERSION)/$(ARCH)/updates

#rpm http://ayo.freshrpms.net redhat/$(VERSION)/$(ARCH) os updates

4) apt-get update

5)
apt install  <pkgname>
apt install --no-checksig <pkgname>