An open API service indexing awesome lists of open source software.

https://github.com/mun1r0b0t/blfs-pck-tree-builder

This is a python code to plot a the package tree for the Beyond Linux From Scratch books.
https://github.com/mun1r0b0t/blfs-pck-tree-builder

Last synced: 3 months ago
JSON representation

This is a python code to plot a the package tree for the Beyond Linux From Scratch books.

Awesome Lists containing this project

README

        

# BLFS Packages Dependency Tree Builder and Visualizer
This is a Python code to plot a the package tree for the Beyond Linux From Scratch books.
It collects data from Linux From Scratch website and generates a visual dependency tree.

### Required Modules:
1. `bs4`: `BeautifulSoup` from the `bs4` module is used to collect data from the BLFS website.
2. `networkx`: `networkx` is used to plot the visuals. Refer [Networkx website](https://networkx.readthedocs.org/en/stable/index.html) for upstream requirements.
3. `pydotplus`: The `pydotplus` module is required for plotting and saving the visuals. Refer [pydotplus docs](http://pydotplus.readthedocs.org/) for upstream requirements.
4. `os, sys, getopt, urllib2, time`: All these should be available with most Python installations.

```
Usage: python blfs-toolchain.py [OPTIONS] [URL|DOTFILE]
URL : BLFS book URL for which dependency tree is needed.
Example URL: 'http://linuxfromscratch.org/blfs/view/stable/'
DOTFILE : Pregenerated dot file with the dependency tree
Possible OPTIONS are:
-h : Print this help document
-o : File to save dot output
-i : File to save dependency tree image (use proper extension)
Image format can be any supported pydotplus format
Requires good grpahics capability on system
-d : Get packages which are dependent on pck
-p : Print all package names.
Use this to get names for for -d
```