Skip to main content

Posts

Showing posts from January, 2008

debmirror on centOS

Install this packages, use rpm -i or yum (yum is better) perl-libwww-perl-5.805-1.1.1.noarch.rpm (dvd centos) perl-Compress-Zlib-1.42-1.fc6 (dvd centos) perl-Digest-SHA1-2.11-1.2.1.i386.rpm (dvd centos) perl-Net* (dvd centos) rsync (dvd centos) perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm (download) perl-Digest-MD5-M4p-0.01-1.2.el5.rf.i386.rpm (download) bzip2 (dvd centos) Then download debmirror wget http://archive.ubuntu.com/ubuntu/pool/universe/d/debmirror/debmirror_20070123ubuntu1.tar.gz Extract tar -xzvf debmirror_20070123ubuntu1.tar.gz mv debmirror_20070123ubuntu1.tar.gz debmirror cp debmirror/debmirror /usr/bin/ Run debmirror And it works! Note : you can download debmirror from another website.

Build Ubuntu Repository (feisty) from file .iso using CentOS

If you have 4 file iso that contain repository ubuntu, you can make web based ubuntu reporitory. First step, you have to make directory for mounting 4 dvd. #mkdir /media/dvd1 #mkdir /media/dvd2 #mkdir /media/dvd3 #mkdir /media/dvd4 than you have to mount your file iso. #mount -o loop /directory_youriso/ubuntu_repository_cd1.iso /media/dvd1 #mount -o loop /directory_youriso/ubuntu_repository_cd2.iso /media/dvd2 #mount -o loop /directory_youriso/ubuntu_repository_cd3.iso /media/dvd3 #mount -o loop /directory_youriso/ubuntu_repository_cd4.iso /media/dvd4 after that copy all the packages from dvd to your ubuntu directory. #mkdir /home/yourusername/ubuntu #rsync -avx --progress /media/dvd1/. /home/yourusername/ubuntu Do this step four times and don't forget to change /media/dvd1 tobe /media/dvd2, /media/dvd3 and /media/dvd4 Next step, we must copy file Packages to hardisk, #cp /media/dvd2/dist/feisty/universe/binary-i386/Packages /home/yourusername/ubuntu/dist/feisty/binary-i386/ Then