Skip to content

kul-amr/package_explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On Ubuntu system, a file called /var/lib/dpkg/status holds information about software packages that the system knows about. This code exposes some key information about currently installed packages via a REST API

To excute the code, need to run the below command : 

    npm run dev

This parses the data file on the initial main API endpoint call and saves data to node-cache for the given time.  
On subsequent calls, will fetch data from the node-cache untill the server restarts or the cache expires.

Main API endpoint: 
    http://localhost:8080/api/packages

    - Lists all the installed packages ordered alphabetically.
    - Displays 10 records on every page.
    - Gives href for each package to check more details.
    - Gives links to navigate to the first, next and previous page.

    http://localhost:8080/api/packages/:packagename

    - Gives details like name, version, description, list of the packges on which this 
      packge depends (named as depends in response) and
      list of the packages which are dependent on this package (named as packagesDependingOnMe in response).
    - Link to the list of packages endpoint.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published