[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

aptitude upgrade



hi,

I've made a small deb repository which some specifics applications there. I'd like to automatically install/upgrade the packages which belong to this repository.

cat /etc/apt/sources.list
# cat /etc/apt/sources.list
   deb http://obsapt:9999/debian/ sarge main contrib non-free
   deb http://obsapt:9999/security stable/updates main contrib non-free
   deb http://obsapt:9999/obs sarge obs

and this obs repository is construct with apt-ftparchive:
apt-ftparchive -c apt-sarge-release.conf generate apt-ftparchive.conf
apt-ftparchive -c apt-sarge-release.conf release dists/sarge/ >dists/sarge/Release

so what is the best practice to do this automatically install/upgrade this packages ??

Cedric

the config files:
> cat apt-ftparchive.conf
   Dir {
     ArchiveDir ".";
     CacheDir ".";
   };
   
   Default {
     Packages::Compress ". gzip bzip2";
     Sources::Compress "gzip bzip2";
     Contents::Compress "gzip bzip2";
   };
   
   BinDirectory "dists/sarge/obs/binary-i386" {
     Packages "dists/sarge/obs/binary-i386/Packages";
     Contents "dists/sarge/Contents-i386";
     SrcPackages "dists/sarge/obs/source/Sources";
   };
   
   
   Tree "dists/sarge" {
     Sections "obs";
     Architectures "i386 source";
   };
   
   Default {
     Packages {
       Extensions ".deb";
     };
   };


cat apt-sarge-release.conf
   APT::FTPArchive::Release::Origin "obs";
   APT::FTPArchive::Release::Label "Descriptive label";
   APT::FTPArchive::Release::Suite "stable";
   APT::FTPArchive::Release::Codename "sarge";
   APT::FTPArchive::Release::Architectures "i386 source";
   APT::FTPArchive::Release::Components "main contrib non-free";
   APT::FTPArchive::Release::Description "More detailed description";

-- 

Cedric BRINER
Geneva - Switzerland



Reply to: