Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I'm looking for a way to run a python script automatically when apt-get is used to install or upgrade a package. The script should get the package name and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    2

    run a script when a new package is installed


    Hi,

    I'm looking for a way to run a python script automatically when apt-get is used to install or upgrade a package.
    The script should get the package name and version as arguments.
    Is this possible?

    Thanks

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    2,003
    You may want to move this over to the linux programming and scripting section. I'm sure it's possible but I have no clue how to do it
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •