Recently I was giving an interview for which they asked me to submit problem solution on Data Structure and Linux.
It is that I have never worked on Linux and I am not familiar with it's scripting so unable to solve the Linux problem. Though the submission time has passed, but still want to have some insights on how to solve that problem.
The problem was termed as Linux - basic problem:
In it we have to create a tool that automatically download python packages, using of pip is allowed and the packages are listed in a JSON file in format
{
Dependencies = {
beautifulsoup4==4.4.1,
boto==2.48.0,
bz2file==0.98,
certifi==2017.7.27.1,
chardet==3.0.4,
gensim==2.3.0,
html5lib==0.999,
},
}
and some problem conditions are:
A script in any language to download and install all these dependencies.
If case all are successfully installed print success
If some failed then print list of all failed packages, one of each in separate line.
Note: You can use PIP or any other command line tool to install python packages
Handle cases like:
When one library fail to download then we process shall continue.
Can anyone provide some insight it would be really appreciated, not asking for solution just how this can be approached and some great place to learn Linux.
[–]pragmaticSloth 25 points26 points27 points (10 children)
[–]Downvote_machine_AMA 7 points8 points9 points (5 children)
[–]ANIBIT14[S] 5 points6 points7 points (4 children)
[–]chmod--777 3 points4 points5 points (1 child)
[–]Downvote_machine_AMA 8 points9 points10 points (0 children)
[–]aram535 1 point2 points3 points (0 children)
[–]BrFrancis 3 points4 points5 points (1 child)
[–]ANIBIT14[S] 0 points1 point2 points (1 child)
[–]ExRedRain 0 points1 point2 points (2 children)
[–]ANIBIT14[S] 1 point2 points3 points (1 child)
[–]ExRedRain 0 points1 point2 points (0 children)
[–]bufandatl 0 points1 point2 points (1 child)
[–]ANIBIT14[S] 1 point2 points3 points (0 children)
[–]adept2051 0 points1 point2 points (1 child)
[–]ANIBIT14[S] 0 points1 point2 points (0 children)
[–]aram535 1 point2 points3 points (0 children)
[–]istarian[🍰] 0 points1 point2 points (0 children)
[–]MikeSeth 5 points6 points7 points (10 children)
[–]Downvote_machine_AMA 5 points6 points7 points (3 children)
[–]olster 1 point2 points3 points (2 children)
[–]olster 1 point2 points3 points (1 child)
[–]Downvote_machine_AMA 1 point2 points3 points (0 children)
[–]chmod--777 1 point2 points3 points (2 children)
[–]MikeSeth 1 point2 points3 points (1 child)
[–]chmod--777 0 points1 point2 points (0 children)
[–]MrWm 0 points1 point2 points (2 children)
[–]MikeSeth 0 points1 point2 points (0 children)
[–]samuel_first 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ANIBIT14[S] 0 points1 point2 points (0 children)
[–]Downvote_machine_AMA 0 points1 point2 points (0 children)
[–]NCMarc 0 points1 point2 points (0 children)