Git Product home page Git Product logo

apt's Introduction

apt

A command line package manager for Osgeo4W

This is the development repository for the apt package. It's a perpetual beta project, run by someone who's learning to program in python (very slowly!). That said, I've been using it regularly for several years to install and maintain o4w systems without serious problems. It works, more or less.

Apt uses the same configuration files as the mainline Osgeo4wSetup.exe, so either tool can be used to install and remove packages at will (but not concurrently!).

Daily use:

apt update                   (fetch up-to-date setup.ini)
apt install gdal gdal-python (install packages "gdal" and "gdal-python", and dependencies)
apt new                      (show possible upgrades)
apt list                     (show installed packages)
apt available                (show installation candidates)
apt remove xxx yyy           (uninstall packages xxx and yyy)

##From scratch Apt can also be used to install a virgin Osgeo4W system from scratch:

Download the latest release from https://github.com/maphew/apt/releases/. Open a CMD shell and:

SET OSGEO4W_ROOT=C:\Osgeo4Wx64
apt --bits=64 setup
apt update
apt install shell

32bit:

SET OSGEO4W_ROOT=C:\Osgeo4W
apt --bits=32 setup
apt update
apt install shell

Differences from Setup.exe

Apt strives to match Setup's results as closely as possible, and to not screw anything up that Setup does. User's should never be put in a position where they feel the need to choose between the tools and not go back.

That's the aspiration. There's no guarantee it's been achieved.

Where I know we depart from Setup:

  • etc/setup/timestamp apt doesn't create or use this file, while Setup does. Presumably it is to avoid downloading a new package list on every invocation, only when older than X. Apt doesn't need this since it has it's own apt update command that's fired at user discretion. Issue #15.

  • Apt doesn't know about the %OSGEO4W_MENU_LINKS% and %OSGEO4W_DESKTOP_LINKS% variables introduced in setup.exe v1.0.6-5. This needs to be added, issue #16.

Contributors and Contributing

These fine people have made this program better than I could have managed on my own:

  • Andreas Müller (@amr66), Universitaet Trier, Germany (64bit handdling, improved return signals, exception handling, lots of other stuff);
  • Jeremy Palmer, Land Information New Zealand (dependencies 1st, menu name);
  • Luke Pinner, Australia Department of the Environment, Water, Heritage and the Arts (windows special folders);
  • Jan Nieuwenhuizen (original cyg-apt author).

If you'd like to help, see the code and auto-generated module docs: http://apt.readthedocs.org/en/latest/

Similar projects

  • cyg-apt, the original python script by Jan Nieuwenhuizen that started it all.
  • cyg-apt - a fork by cjcormie, dev stopped ~2009
  • apt-cyg - written in bash by transcode-open; relatively active and current.

apt's People

Contributors

maphew avatar amr66 avatar mhw-at-yg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.