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.
- Host: GitHub
- URL: https://github.com/mun1r0b0t/blfs-pck-tree-builder
- Owner: mun1r0b0t
- License: gpl-3.0
- Created: 2016-03-16T02:26:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T01:27:26.000Z (almost 9 years ago)
- Last Synced: 2025-02-10T19:39:26.934Z (4 months ago)
- Language: Python
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.MD
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
```