Apt, Synaptic, and local repositories for
RPM based systems

CLUE MEETING

by Dennis A. Dallas

January 11, 2005

REASONS I WANTED TO USE APT AND SYNAPTIC and a LOCAL REPOSITORY

Redhat up2date utility too slow

Fedora package manager does not show all programs

Tired of trying to find which CD I needed to mount

RPM does not resolve dependencies

GET and INSTALL APT
and SYNAPTIC

Download apt from

http://freshrpms.net

apt-0.5.15cnc6-1.1.fc3.fr.i386.rpm

Install with rpm

rpm -i apt-0.5.15cnc6-1.1.fc3.fr.i386.rpm

Install synaptic with apt

apt-get update

apt-get install synaptic

BASIC APT COMMANDS

apt-get update

apt-get install

apt-get remove

Apt-get –purge remove

apt-get clean

apt-cache pkgnames

apt-cache search

Apt-cache showpkg

Get directory list

Install package

Delete package

Delete package and configurations

Clear work area

List packages (use grep / less)

Find package

list one package

/etc/apt/sources.list

# Fedora Linux 3

rpm http://ayo.freshrpms.net/ fedora/Linux/3/i386 core updates freshrpms

# rpm http://ayo.freshrpms.net/ fedora/Linux/3/i386 tupdates

# rpm-src http://ayo.freshrpms.net/ fedora/Linux/3/i386 core updates freshrpms

# rpm-src http://ayo.freshrpms.net/ fedora/Linux/3/i386 tupdates

# rpm -i /home/kad/downloads/Linux/temp/fromkad/apt-0.5.15cnc6-1.1.fc3.fr.i386.rpm

# cat /etc/apt/sources.list

# Fedora Linux 3

rpm http://ayo.freshrpms.net fedora/Linux/3/i386 core updates freshrpms

#rpm http://ayo.freshrpms.net fedora/Linux/3/i386 tupdates

#rpm-src http://ayo.freshrpms.net fedora/Linux/3/i386 core updates freshrpms

Install apt - console

[root@kosta ~]# apt-get update

Get:1 http://ayo.freshrpms.net fedora/Linux/3/i386 release [1819B]

Fetched 1819B in 5s (324B/s)

Get:1 http://ayo.freshrpms.net fedora/Linux/3/i386/core pkglist [1668kB]

Get:2 http://ayo.freshrpms.net fedora/Linux/3/i386/core release [151B]

Get:3 http://ayo.freshrpms.net fedora/Linux/3/i386/updates pkglist [618kB]

Get:4 http://ayo.freshrpms.net fedora/Linux/3/i386/updates release [157B]

Get:5 http://ayo.freshrpms.net fedora/Linux/3/i386/freshrpms pkglist [231kB]

Get:6 http://ayo.freshrpms.net fedora/Linux/3/i386/freshrpms release [161B]

Fetched 2518kB in 10m7s (4142B/s)

Reading Package Lists... Done

Building Dependency Tree... Done

Apt update

[root@kosta ~]# apt-get install synaptic

Reading Package Lists... Done

Building Dependency Tree... Done

The following NEW packages will be installed:

synaptic

0 upgraded, 1 newly installed, 0 removed and 123 not upgraded.

Need to get 1497kB of archives.

After unpacking 5321kB of additional disk space will be used.

Get:1 http://ayo.freshrpms.net fedora/Linux/3/i386/freshrpms synaptic 0.55.1-1.1.fc3.fr [1497kB]

Fetched 1497kB in 6m10s (4036B/s)

Committing changes...

Preparing... ########################################### [100%]

1:synaptic ########################################### [100%]

Done.

Install synaptic

Create private repository

Set up directory

mkdir /mnt/data/fedora_c2_rpms/RPMS.extra

/mnt/data # uri

fedora_c2_rpms # repository

RPMS.extra # sections

Mount cdroms and copy files

mount /dev/cdrom /mnt/cdrom

cp mnt/cdrom/Fedora/RPMS/* /mnt/data/fedora_c2_rpms/RPMS.extra/

Create private repository
continued

Create base directory

mkdir /mnt/data/fedora_c2_rpms/base

Create repository directory

genbasedir –flat –bloat /mnt/data/fedora_c2_rpms extra

Add to source.list

rpm file:/mnt/data/ fedora_c2_rpms extra

SYNAPTIC

SYNAPTIC REPOSITORY

RESOURCES

Linux Magazine – October 2003

http://freshprms.net

http://apt4rpm.sourceforge.net/

https://moin.conectiva.com.br/AptRpm

http://www.fedora.us/wiki/FedoraHOWTO

http://www.nongnu.org/synaptic/

konstantine a. dallas

2004-12-02T19:34:41

geri dallas